我有一个带有多个索引的系列。她是一群人的结果。
df.groupby(['player','type'])['pg'].mean()
player type
player01 hunter 0.443351
clone 0.406561
wichter 0.211536
wizard 0.479815
fenix 0.534170
...
player02 hunter 0.488693
clone 0.240353
wizard 0.485873
tusken 0.350474
fenix 0.163930
Length: 1035, dtype: float64
但是我试图进行一个查询,该查询仅带来索引player02
的值,但我没有得到。
有人会为此解决吗?