File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ squeeze : boolean, default ``False``
149
149
prefix : str, default ``None ``
150
150
Prefix to add to column numbers when no header, e.g. 'X' for X0, X1, ...
151
151
mangle_dupe_cols : boolean, default ``True ``
152
- Duplicate columns will be specified as 'X.0 '...'X.N', rather than 'X'...'X'.
152
+ Duplicate columns will be specified as 'X', 'X.1 '...'X.N', rather than 'X'...'X'.
153
153
Passing in False will cause data to be overwritten if there are duplicate
154
154
names in the columns.
155
155
@@ -548,7 +548,7 @@ these names so as to prevent data overwrite:
548
548
pd.read_csv(StringIO(data))
549
549
550
550
There is no more duplicate data because ``mangle_dupe_cols=True `` by default, which modifies
551
- a series of duplicate columns 'X'...'X' to become 'X.0' ...'X.N'. If ``mangle_dupe_cols
551
+ a series of duplicate columns 'X'...'X' to become 'X', 'X.1', ...'X.N'. If ``mangle_dupe_cols
552
552
=False ``, duplicate data can arise:
553
553
554
554
.. code-block :: python
Original file line number Diff line number Diff line change 114
114
prefix : str, default None
115
115
Prefix to add to column numbers when no header, e.g. 'X' for X0, X1, ...
116
116
mangle_dupe_cols : boolean, default True
117
- Duplicate columns will be specified as 'X.0' ...'X.N', rather than
117
+ Duplicate columns will be specified as 'X', 'X.1', ...'X.N', rather than
118
118
'X'...'X'. Passing in False will cause data to be overwritten if there
119
119
are duplicate names in the columns.
120
120
dtype : Type name or dict of column -> type, default None
You can’t perform that action at this time.
0 commit comments