-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Strip header names? #9067
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
Comments
@mrocklin You have the
So your question is more about the default value of |
Ah, this resolves my underlying issue. Thank you for pointing me to the right keyword argument. I apologize for not being sufficiently thorough. The two directions you pointed out both seem like valid questions. I'll state them again below:
I have not personally encountered a dataset where positive answers to both of these questions would have had a negative effect and I have encountered a few where positive answers to these questions would have had a positive one. Admittedly though I have encountered a small subset of datasets. |
This default behavior just wasted me several hours trying to figure out why there's a key error when joining two data frames read from CSVs. It's really difficult to see there are leading spaces in a column's name from python terminal output. |
Could it be a useful feature to add to warn users of leading/trailing spaces in index/column names when using importing functions? |
I'm -0 here; to me the most expected behavior of
But of course, there is no true standard. |
duplicate with #14460 |
In csv files that have odd spacing
Loaded dataframes can sometimes have column names with leading or trailing whitespace. Should these column names be stripped by default?
The text was updated successfully, but these errors were encountered: