-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: codecs.open() is always opened in text mode #39253
Conversation
twoertwein
commented
Jan 18, 2021
•
edited
Loading
edited
- closes BUG: V1.2 DataFrame.to_csv() fails to write a file with codecs #39247
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
Thanks @twoertwein for the PR. can you add a release note to 1.2.1 for now. see #39239 (comment) |
doc/source/whatsnew/v1.2.1.rst
Outdated
@@ -34,6 +34,7 @@ Fixed regressions | |||
- Fixed regression in repr of float-like strings of an ``object`` dtype having trailing 0's truncated after the decimal (:issue:`38708`) | |||
- Fixed regression that raised ``AttributeError`` with PyArrow versions [0.16.0, 1.0.0) (:issue:`38801`) | |||
- Fixed regression in :func:`pandas.testing.assert_frame_equal` raising ``TypeError`` with ``check_like=True`` when :class:`Index` or columns have mixed dtype (:issue:`39168`) | |||
- Fixed regression in :meth:`~DataFrame.to_csv` opening `codecs.StreamReaderWriter` in binary mode instead of in text mode (:issue:`39247`) |
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.
@jorisvandenbossche did a cleanup to re-order the regression fixes, #39246
can you move adjacent to the other IO regressions
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.
I moved it up to the other to_csv
issue.
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.
Thanks a lot!
technically there are cases where |
thanks @twoertwein |
@meeseeksdev backport 1.2.x |
1 similar comment
@meeseeksdev backport 1.2.x |
Something went wrong ... Please have a look at my logs. |
…#39271) Co-authored-by: Torsten Wörtwein <twoertwein@users.noreply.github.com>