-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Fixed docstring for mode() #35624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f424e39
5eb9637
c167857
0f3e9a4
e932f12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1786,7 +1786,10 @@ def count(self, level=None): | |
|
||
def mode(self, dropna=True) -> "Series": | ||
""" | ||
Return the mode(s) of the dataset. | ||
Return the mode(s) of the series. | ||
|
||
The mode is the value that appears most often. | ||
It can be multiple values. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this fit on one line? Otherwise LGTM. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first line of a docstring is limited to 55 characters. Other 2 lines in my suggestion will be displayed in the documentation anyway as 1 line. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MarianD can't these 2 extra lines you've added fit on a single line?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MarcoGorelli, thanks for your tip, done. |
||
|
||
Always returns Series even if only one value is returned. | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.