Data Science, Science, Research, Text Mining, Hands On Tutorials.
pd.DataFrame(global_word_list) global_word_df.columns = ['word', 'frequency', 'year'] pivot_df = global_word_df.loc[:, ['word', 'year', 'frequency']].pivot(index="word", columns="year", values="frequency").fillna(0) pivot_df.drop('covid-19', axis=0, inplace=True) pivot_df.drop('sars-cov-2', axis=0,