I have been doing a GNews Sentiment Analysis using Python, where I take the keyword as input. Now if I run analysis for 20 different keywords, I want to save the dataframe I receive from each run on one single dataframe. It means the dataframes will keep adding on the combined dataframe.
I have tried this code at the end of the programme:
data_df = pd.DataFrame()
company_list = list()
for company in tqdm_notebook(company_list):
news_df = google_data(company,300)
data_df = pd.concat([data_df,tweet_df])
Here, news_df
is the dataframe containing the data we extract from API, google_data(company,300)
is the function for the getting the dataframe (300 is the no. of rows).
This is the output I have received:
0/0 [00:00<?, ?it/s]
I'm not able to figure out what exactly isn't working.