Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DEPR: deprecated nonkeyword arguments in to_parquet #54631

Merged
merged 9 commits into from
Aug 22, 2023

Conversation

rsm-23
Copy link
Contributor

@rsm-23 rsm-23 commented Aug 18, 2023

@rsm-23 rsm-23 marked this pull request as ready for review August 18, 2023 19:38
@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 19, 2023

@mroeschke can you please help me understand what's causing this error?

AssertionError: Warning not set with correct stacklevel. File where warning is raised: /home/runner/micromamba/envs/test/lib/python3.9/site-packages/pyarrow/pandas_compat.py != /home/runner/work/pandas/pandas/pandas/tests/io/test_parquet.py. Warning message: is_sparse is deprecated and will be removed in a future version. Check isinstance(dtype, pd.SparseDtype) instead.

@mroeschke
Copy link
Member

You can set check_stacklevel=False for your test. Seems like a 3rd party warning is messing up the stacklevel checking

@mroeschke mroeschke added Deprecate Functionality to remove in pandas IO Parquet parquet, feather labels Aug 21, 2023
@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 21, 2023

@mroeschke still getting some error like this. Can you please help on this?

pandas/tests/io/test_parquet.py::test_parquet_pos_args_deprecation - ImportError: Unable to find a usable engine; tried using: 'pyarrow', 'fastparquet'.
A suitable version of pyarrow or fastparquet is required for parquet support.

@mroeschke mroeschke added this to the 2.2 milestone Aug 22, 2023
@mroeschke mroeschke merged commit 0fc36ad into pandas-dev:main Aug 22, 2023
@mroeschke
Copy link
Member

Thanks @rsm-23

@rsm-23 rsm-23 deleted the nonkeyword-to-parquet branch August 22, 2023 16:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Deprecate Functionality to remove in pandas IO Parquet parquet, feather
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants