-
-
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
Revise What's New for inferring compression from non-string paths #17338
Revise What's New for inferring compression from non-string paths #17338
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17338 +/- ##
==========================================
- Coverage 91.01% 90.99% -0.02%
==========================================
Files 162 162
Lines 49567 49567
==========================================
- Hits 45113 45104 -9
- Misses 4454 4463 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17338 +/- ##
==========================================
- Coverage 91.01% 90.99% -0.02%
==========================================
Files 162 162
Lines 49567 49567
==========================================
- Hits 45113 45104 -9
- Misses 4454 4463 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17338 +/- ##
==========================================
- Coverage 91.26% 91.02% -0.25%
==========================================
Files 163 162 -1
Lines 49776 49567 -209
==========================================
- Hits 45426 45116 -310
- Misses 4350 4451 +101
Continue to review full report at Codecov.
|
doc/source/whatsnew/v0.21.0.txt
Outdated
@@ -126,7 +126,7 @@ Other Enhancements | |||
- :func:`date_range` now accepts 'Y' in addition to 'A' as an alias for end of year (:issue:`9313`) | |||
- Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a new top-level :func:`read_parquet` and :func:`DataFrame.to_parquet` method, see :ref:`here <io.parquet>`. | |||
- :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept strings containing the '%' character. (:issue:`17151`) | |||
- `read_*` methods can now infer compression from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`). | |||
- Certain read/write methods can now infer compression from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`). Only io methods that rely on ``io.common._infer_compression`` are affected, which at this time is ``read_csv``, ``read_table``, ``read_pickle``, and ``write_pickle`` (:issue:`17262`). |
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 don't think we should mention the private io.common._infer_compression
in the whatsnew notes, I would just list the improved functions. (also write_pickle is not a public one -> to_pickle)
doc/source/whatsnew/v0.21.0.txt
Outdated
@@ -126,7 +126,7 @@ Other Enhancements | |||
- :func:`date_range` now accepts 'Y' in addition to 'A' as an alias for end of year (:issue:`9313`) | |||
- Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a new top-level :func:`read_parquet` and :func:`DataFrame.to_parquet` method, see :ref:`here <io.parquet>`. | |||
- :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept strings containing the '%' character. (:issue:`17151`) | |||
- `read_*` methods can now infer compression from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`). | |||
- Read/write methods that infer compression (``read_csv``, ``read_table``, ``read_pickle``, and ``to_pickle``) can now infer from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`). |
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.
can you use :func:`read_csv`
and so on.
minor comment. pls rebase. ping on green. |
Updated and merged. Thanks @dhimmel ! |
This pull request improves the What's New message corresponding to #17206, which updated
io.common._infer_compression
to infer compression from non-string paths.Refs #17262
Refs #17206 (comment)