I have a dataframe with a single column and 1200 rows. There are a total of 3 possible values in each row - 'No difference', 'Opposite sex' or 'Same sex'. The column header is 'Friends' I'm trying to sum up the total number of results for each value using
df2 = df1.groupby(['Friends']).sum()
but I end up with an empty dataframe as the result (df2)