From 60bc2b2335cf8b3b42486b2c1bdcea87df7ff0a8 Mon Sep 17 00:00:00 2001 From: gboeker Date: Wed, 27 Mar 2024 12:06:21 -0400 Subject: [PATCH 1/2] remove 'or tuple' --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 501901e5b3593..e555709a38093 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5999,8 +5999,8 @@ def reset_index( names : int, str or 1-dimensional list, default None Using the given string, rename the DataFrame column which contains the - index data. If the DataFrame has a MultiIndex, this has to be a list or - tuple with length equal to the number of levels. + index data. If the DataFrame has a MultiIndex, this has to be a list + with length equal to the number of levels. .. versionadded:: 1.5.0 From b9ffd56445425921f70b9f29178d93f22c8e36f4 Mon Sep 17 00:00:00 2001 From: gboeker <68177766+gboeker@users.noreply.github.com> Date: Wed, 27 Mar 2024 12:42:24 -0400 Subject: [PATCH 2/2] remove trailing space --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9852c0f8f6a47..50a93994dc76b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6011,7 +6011,7 @@ def reset_index( names : int, str or 1-dimensional list, default None Using the given string, rename the DataFrame column which contains the - index data. If the DataFrame has a MultiIndex, this has to be a list + index data. If the DataFrame has a MultiIndex, this has to be a list with length equal to the number of levels. .. versionadded:: 1.5.0