Skip to content

Commit 23b1717

Browse files
MarianDMarcoGorellidsaxton
authored
DOC: Fixed docstring for mode() (#35624)
* DOC: Fixed docstring for mode() * DOC: Changed docstring for mode() - Explanation of mode() function * Update pandas/core/series.py Co-authored-by: Marco Gorelli <[email protected]> * DOC: Changes in docstring for mode() - Fixed 1st line of docstring - Added explanation for mode() function - Explanation for mode(): joined 2 lines into 1 * Update pandas/core/series.py Co-authored-by: Daniel Saxton <[email protected]> Co-authored-by: Marco Gorelli <[email protected]> Co-authored-by: Daniel Saxton <[email protected]>
1 parent 068e654 commit 23b1717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/series.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,9 @@ def count(self, level=None):
18001800

18011801
def mode(self, dropna=True) -> "Series":
18021802
"""
1803-
Return the mode(s) of the dataset.
1803+
Return the mode(s) of the Series.
1804+
1805+
The mode is the value that appears most often. There can be multiple modes.
18041806
18051807
Always returns Series even if only one value is returned.
18061808

0 commit comments

Comments
 (0)