first/count applied to groupby returns empty dataframe

前端 未结 0 993
谎友^
谎友^ 2021-01-21 04:37
import pandas as pd

df = pd.DataFrame( {\'A\': [1,1,2,3,4,5,5,6,7,7,7,8]} )
dummy = df["A"]
print(dummy)

0     1
1     1
2     2
3     3
4     4
5     5
6            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题