I have the following problem.
In a pandas data frame I have one column with all the full words and abbreviations. The second column comes with some floats.
polarity crypto_match_1
I want to groupby()
this columns by its words & abbreviations through a dictionary. However the function groups the words and abbreviations separately.
crypto_ranking = dataframe_crypto.set_index('crypto_match_1').groupby(by=new_dict,axis=0).mean().reset_index()