Skip to content

Commit 3f523f3

Browse files
sakkemojorisvandenbossche
sakkemo
authored andcommitted
DOC: Update Series.mode docstring (#14653)
The sort keyword has never existed, and output is always sorted
1 parent 52241a7 commit 3f523f3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

pandas/core/series.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -1216,16 +1216,10 @@ def count(self, level=None):
12161216
dtype='int64').__finalize__(self)
12171217

12181218
def mode(self):
1219-
"""Returns the mode(s) of the dataset.
1219+
"""Return the mode(s) of the dataset.
12201220
1221-
Empty if nothing occurs at least 2 times. Always returns Series even
1222-
if only one value.
1223-
1224-
Parameters
1225-
----------
1226-
sort : bool, default True
1227-
If True, will lexicographically sort values, if False skips
1228-
sorting. Result ordering when ``sort=False`` is not defined.
1221+
Empty if nothing occurs at least 2 times. Always returns Series even
1222+
if only one value is returned.
12291223
12301224
Returns
12311225
-------

0 commit comments

Comments
 (0)