pandas.Series.mode — pandas 0.25.3 documentation (original) (raw)

Series. mode(self, dropna=True)[source]

Return the mode(s) of the dataset.

Always returns Series even if only one value is returned.

Parameters: dropna : bool, default True Don’t consider counts of NaN/NaT. New in version 0.24.0.
Returns: Series Modes of the Series in sorted order.