Pandas数值统计学会统计Series中的值。请仔细阅读右侧代码,结合相关知识,在 Begin-End 区域内进行代码补充,完成以下需求:
我们已经将f500中的一些数据保存到名为f500_sel的dataframe中。
在f500_sel的dataframe的country列中找到每个值及其计数。
在f500_sel的dataframe中选择country列。将它赋值给变量countries。
使用Series.value_counts()方法返回countries中的值的计数。将结果赋值给country_counts。
打印变量countries和country_counts。