I have a dataframe, with columns:
cols = [\'A\', \'B\', \'C\']
If I groupby one column, say, \'A\', like so:
df.groupby(\'A\')[\'B