Here's my dataframe:
I want to sort my dataframe by airline and then within this group by tweet_created. airline and tweet_created are two columns in my dataframe. I tried te following
df.groupby(['airline']).apply(lambda x: x.sort_values(['tweet_created'])).reset_index(drop = True)
But got this error:
unhashable type: 'list'
I don't understand what's going wrong here. Can someone help me?
