如题,groupby后统计会生成类似下面这样的数据
那为啥要groupby?假如pandas只有三列,直接:
q = yourdf[1]=='one' and (yourdf[2]==1) key1 = yourdf[0][q]#最后得到一个列表