pandas.Series.mode
- Series.mode(dropna=True)[source]
-
Return the mode(s) of the Series.
The mode is the value that appears most often. There can be multiple modes.
Always returns Series even if only one value is returned.
- Parameters
-
- dropna:bool, default True
-
Don’t consider counts of NaN/NaT.
- Returns
-
- Series
-
Modes of the Series in sorted order.
© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.Series.mode.html