From 0825f528c26db8c68e80c5a282623e45e8c8d4fd Mon Sep 17 00:00:00 2001 From: JosephShyFang <32496804+JosephShyFang@users.noreply.github.com> Date: Tue, 17 May 2022 19:38:00 -0400 Subject: [PATCH 1/2] Update _base.py --- pandas/io/excel/_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 030ae9fefda98..4d45ff208ae12 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -275,8 +275,8 @@ mangle_dupe_cols : bool, default True Duplicate columns will be specified as 'X', 'X.1', ...'X.N', rather than - 'X'...'X'. Passing in False will cause data to be overwritten if there - are duplicate names in the columns. + 'X'...'X'. Passing in False will in the future cause data to be overwritten + if there are duplicate names in the columns, but is currently not permitted. {storage_options} .. versionadded:: 1.2.0 From 29ccd05512e8f4648aa8aed6d153896f4761065e Mon Sep 17 00:00:00 2001 From: JosephShyFang <32496804+JosephShyFang@users.noreply.github.com> Date: Tue, 17 May 2022 19:39:36 -0400 Subject: [PATCH 2/2] Update readers.py --- pandas/io/parsers/readers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index f853251d599d2..6a086bc251efe 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -159,8 +159,8 @@ Use a list comprehension on the DataFrame's columns after calling ``read_csv``. mangle_dupe_cols : bool, default True Duplicate columns will be specified as 'X', 'X.1', ...'X.N', rather than - 'X'...'X'. Passing in False will cause data to be overwritten if there - are duplicate names in the columns. + 'X'...'X'. Passing in False will in the future cause data to be overwritten + if there are duplicate names in the columns, but is currently not permitted. dtype : Type name or dict of column -> type, optional Data type for data or columns. E.g. {{'a': np.float64, 'b': np.int32, 'c': 'Int64'}}