赞
踩
Series.value_counts(normalize=False, sort=True, ascending=False, bins=None, dropna=True)[source]
Return a Series containing counts of unique values.
The resulting object will be in descending order so that the first element is the most frequently-occurring element. Excludes NA values by default.
举例:
s = pd.Series([3, 1, 2, 3, 4
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。