Open cloverpyy opened 5 years ago
the .groupby() function only just choose the one column and order by it, if I want to groupby 2 columns, what functions should I use for it. Thanks for your help.
.groupby()
Hi, You can do it by 'grouped = df.groupby(['A', 'B'])'
Check this website:http://pandas.pydata.org/pandas-docs/stable/groupby.html
It has a good documentation
the
.groupby()
function only just choose the one column and order by it, if I want to groupby 2 columns, what functions should I use for it. Thanks for your help.