如何根据我从数值函数创建的新数据集的某个值找到我的数据集的数量

How can I find the number of my dataset based on a certain value of the new dataset I created from the numeric values ​function

这是我的新 dataframe.value_counts(),我想知道堪培拉有多少个“否”和“是” 数据_ 我如何学习这个

Location      RainTomorrow
Canberra      No              937
Woomera       No              932
AliceSprings  No              931
Mildura       No              888
Cobar         No              861
                             ... 
Katherine     Yes              87
Nhil          Yes              84
AliceSprings  Yes              80
Woomera       Yes              66
Uluru         Yes              27
Length: 98, dtype: int64

尝试使用 locvalue_counts() 过滤:

df.loc[df.Location == 'Canberra'].RainTomorrow.value_counts()