A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/8908 below:

shouldn't mangle_dupe_cols add an underscore rather than a dot in read_csv? · Issue #8908 · pandas-dev/pandas · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4