From 0d250c22bf162f426583adfd29c7c1594a5d81ea Mon Sep 17 00:00:00 2001 From: Sakari Cajanus Date: Mon, 14 Nov 2016 14:30:02 +0200 Subject: [PATCH] DOC: Update Series.mode docstring --- pandas/core/series.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 188204d83d985..2310e75f3d3fa 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1216,16 +1216,10 @@ def count(self, level=None): dtype='int64').__finalize__(self) def mode(self): - """Returns the mode(s) of the dataset. + """Return the mode(s) of the dataset. - Empty if nothing occurs at least 2 times. Always returns Series even - if only one value. - - Parameters - ---------- - sort : bool, default True - If True, will lexicographically sort values, if False skips - sorting. Result ordering when ``sort=False`` is not defined. + Empty if nothing occurs at least 2 times. Always returns Series even + if only one value is returned. Returns -------