Skip to content

Commit c030abf

Browse files
gboekerpmhatre1
authored andcommitted
DOC: DataFrame.reset_index names param can't be a tuple as docs state (pandas-dev#58032)
* remove 'or tuple' * remove trailing space
1 parent db80cab commit c030abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6011,8 +6011,8 @@ def reset_index(
60116011
60126012
names : int, str or 1-dimensional list, default None
60136013
Using the given string, rename the DataFrame column which contains the
6014-
index data. If the DataFrame has a MultiIndex, this has to be a list or
6015-
tuple with length equal to the number of levels.
6014+
index data. If the DataFrame has a MultiIndex, this has to be a list
6015+
with length equal to the number of levels.
60166016
60176017
.. versionadded:: 1.5.0
60186018

0 commit comments

Comments
 (0)