pandas.Series.mode#

Series.mode(dropna=True)[源代码]#

返回系列的模式。

模式是最常出现的值。可以有多种模式。

即使只返回一个值,也始终返回Series。

参数
dropna布尔值,默认为True

不考虑NAN/NAT的计数。

退货
系列

按顺序排列的系列模式。