polars.Series.mode
-
Compute the most occurring value(s).
Can return multiple Values.
- Parameters:
-
- maintain_order
-
Maintain order of data. This requires more work.
Examples
>>> s = pl.Series("a", [1, 2, 2, 3]) >>> s.mode() shape: (1,) Series: 'a' [i64] [ 2 ]
Series.mode(
*,
maintain_order: bool = False,
) → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.mode.html