Skip to content
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

Filter all DeprecationWarning's by ArrowTable.to_pandas() #14989

Merged
merged 12 commits into from
Feb 7, 2024

Conversation

galipremsagar
Copy link
Contributor

Description

This PR filters all DeprecationWarning's that are being originated by ArrowTable.to_pandas

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@galipremsagar galipremsagar added 3 - Ready for Review Ready for review by team Python Affects Python cuDF API. 4 - Needs cuDF (Python) Reviewer improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 7, 2024
@galipremsagar galipremsagar self-assigned this Feb 7, 2024
@galipremsagar galipremsagar requested a review from a team as a code owner February 7, 2024 02:09
pytestmark = pytest.mark.filterwarnings(
"ignore",
category=DeprecationWarning,
message="Passing a BlockManager to DataFrame is deprecated",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cudf never deals with the pandas block manager right? If not, I would just globally ignore this in python/cudf/cudf/tests/pytest.ini with ignore:Passing a BlockManager to DataFrame is deprecated:DeprecationWarning

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't deal with it, it shows up every time when we do:

arrow_table = pa.table(...)
arrow_table.to_pandas()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, moved the filter to pytest.ini

python/cudf/cudf/tests/test_dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_datetime.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_parquet.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_rolling.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_rolling.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_s3.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_s3.py Outdated Show resolved Hide resolved
@galipremsagar galipremsagar added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team 4 - Needs cuDF (Python) Reviewer labels Feb 7, 2024
@galipremsagar
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 285b836 into rapidsai:branch-24.04 Feb 7, 2024
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants