我只想要那些价值大于 15 的名字,但它为所有名字提供 true 和 false

I want to only those names who are having value count > 15 but its giving true and false for all the names

df['player_of_match'].value_counts()>15 

我得到这个输出

CH Gayle           True
AB de Villiers     True
MS Dhoni           True

                  ... 
BA Bhatt          False
WPUJC Vaas        False
AD Mascarenhas    False

当我使用这段代码时,我得到:

df['player_of_match'].value_counts()
CH Gayle          21
AB de Villiers    20
MS Dhoni          17
                  ..

BA Bhatt           1
WPUJC Vaas         1
AD Mascarenhas     1

但我只想要计数 > 15 的名称。请帮我设置条件。 P.S。新来的

尝试:

df[df['player_of_match'].value_counts()>15] 

你可以试试这个:

df['player_of_match'].value_counts()[df['player_of_match'].value_counts() > 15]