Skip to content

shouldn't mangle_dupe_cols add an underscore rather than a dot in read_csv? #8908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mbakker7 opened this issue Nov 27, 2014 · 1 comment
Closed
Labels
Enhancement IO CSV read_csv, to_csv

Comments

@mbakker7
Copy link

When I use read_csv to read a file which has columns with the same name, the names are amended with .1, .2, etc, when mangle_dupe_cols=True in read_csv.

Wouldn't it make more sense to amend them as _1, _2, etc., so that columns of a dataframe can still be accessed with the dot syntax: df.name_1 works fine, but df.name.1 doesn't work.

Just a suggestion,

Mark

@phofl
Copy link
Member

phofl commented Apr 9, 2023

Closing here, the argument is gone and I don't think that we can or should change the default

@phofl phofl closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO CSV read_csv, to_csv
Projects
None yet
Development

No branches or pull requests

4 participants