-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-45570: [Python] Allow Decimal32/64Array.to_pandas #45571
Conversation
|
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.
Just a minor lint issue, the change looks good to me.
python/pyarrow/tests/test_pandas.py
Outdated
@pytest.mark.parametrize("typ", [ | ||
pa.decimal32, | ||
pa.decimal64, | ||
pa.decimal128, | ||
]) |
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 add decimal256
into the mix, or does it actually not work?
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.
Sure, added decimal256
as it appears to work
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.
+1, thank you @mroeschke !
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit ce012eb. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
Enables converting
Decimal32Array
andDecimal64Array
to pandasWhat changes are included in this PR?
Adds
Type::DECIMAL32
andType::DECIMAL64
as convertible types to pandasAre these changes tested?
Yes
Are there any user-facing changes?
Yes
closes #45570