-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
REGR: re-add encoding for read_excel #35758
Conversation
There were changes to |
Does this do nothing or am I misreading it? Doesn't the excel format already define how to interpret its data? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we need a test here; I know you are trying to get one @twoertwein
I think it doesn't do what I expected it to do: It will forward the pandas/pandas/io/excel/_base.py Line 494 in 13940c7
but this is the wrong place ( pandas/pandas/io/excel/_xlrd.py Line 37 in 13940c7
since this is the place (or one of the places) where the file is actually opened. After that, all functions seem to operate on strings so there shouldn't be a need for an encoding form there one. I will put this PR in draft mode until we have an excel file that needs an encoding. Edit: closed, a future PR might go the route of forwarding the encoding to each "Excel backend" (if there is a need for that) |
Co-authored-by: Simon Hawkins <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Needs tests!