-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
ENH: xz compression_args df.to_pickle(path, compression={'method':'xz','pr… #53443
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
Conversation
pandas/io/common.py:829:89: E501 Line too long (103 > 88 characters)
Thank you for the PR. You definitely will need the following:
|
pandas/io/common.py:830: error: Argument 1 to "LZMAFile" has incompatible type "Union[str, BaseBuffer]"; expected "Optional[Union[Union[str, bytes, PathLike[str], PathLike[bytes]], IO[bytes]]]" [arg-type] pandas/io/common.py:831: error: Unused "type: ignore" comment
Thank you for advices and maintaining pandas! Seems done with checks and docs. Do I need add any new tests or it's ready? |
Yes, you will need a test. Probably in https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_compression.py I'm not sure how to best test that the keywords are being forwarded: maybe one test with either to_pickle/read_csv and just pass a valid argument and then another test that passes an invalid keyword that raises an error in lzma to ensure the keyword is forwarded to it. edit: should probably test both to_pickle and read_csv just to cover one read/write method. |
docs ench update
sort whatsnew entries alphabetically & black fix
Thank you! Done. Seems now everything is ready for review. |
Thanks @segatrade |
…','pr… (pandas-dev#53443) * xz compression_args df.to_pickle(path, compression={'method':'xz','preset': 9}) * fix Line too long pandas/io/common.py:829:89: E501 Line too long (103 > 88 characters) * fix black * xz compression_args docs * ruff 458:89: E501 Line too long * fix mypy Failed pandas/io/common.py:830: error: Argument 1 to "LZMAFile" has incompatible type "Union[str, BaseBuffer]"; expected "Optional[Union[Union[str, bytes, PathLike[str], PathLike[bytes]], IO[bytes]]]" [arg-type] pandas/io/common.py:831: error: Unused "type: ignore" comment * xz compression tests docs ench update * Sphinx lint & black fix * additional assert in test sort whatsnew entries alphabetically & black fix * fix test obj * fix path test * removed test_xz_compression_invalid_args , fix read_csv(compression --------- Co-authored-by: Se <--global>
…','pr… (pandas-dev#53443) * xz compression_args df.to_pickle(path, compression={'method':'xz','preset': 9}) * fix Line too long pandas/io/common.py:829:89: E501 Line too long (103 > 88 characters) * fix black * xz compression_args docs * ruff 458:89: E501 Line too long * fix mypy Failed pandas/io/common.py:830: error: Argument 1 to "LZMAFile" has incompatible type "Union[str, BaseBuffer]"; expected "Optional[Union[Union[str, bytes, PathLike[str], PathLike[bytes]], IO[bytes]]]" [arg-type] pandas/io/common.py:831: error: Unused "type: ignore" comment * xz compression tests docs ench update * Sphinx lint & black fix * additional assert in test sort whatsnew entries alphabetically & black fix * fix test obj * fix path test * removed test_xz_compression_invalid_args , fix read_csv(compression --------- Co-authored-by: Se <--global>
…eset': level})
level = 9
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.