pandas.Series.mode
pandas 3.1.1 · Series and accessors · method
Find the value or values tied for highest frequency.
Call syntax
Series.mode(dropna=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
dropna |
Optional Positional or keyword Default True |
bool Choose whether to drop missing values or missing keys from consideration. |
Returns
Series