You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [23]: import pandas.util.testing as tm
In [24]: df = tm.makeTimeDataFrame()
In [25]: df.groupby(lambda x: x.month).count()
Out[25]:
A B C D
1 21 21 21 21
2 9 9 9 9
In [26]: df.groupby(lambda x: x.month).apply(len)
Exception
you want to get a Series like:
1 21
2 9
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: