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
[Python] Decimal conversion not working for NaN values #18112
Comments
Phillip Cloud / @cpcloud: |
Phillip Cloud / @cpcloud: |
Antony Mayi / @antonymayi: This is the same case like with floats - |
Wes McKinney / @wesm: |
I guess the current implementation looks at the first cell of the column, finds instance of >>> pa.Table.from_pandas(pd.DataFrame({'a': [decimal.Decimal('1.1'), None]}))
...
pyarrow.lib.ArrowException: Unknown error: 'NoneType' object has no attribute 'as_tuple' or for >>> pa.Table.from_pandas(pd.DataFrame({'a': [decimal.Decimal('1.1'), np.nan]}))
...
pyarrow.lib.ArrowException: Unknown error: 'float' object has no attribute 'as_tuple' |
Wes McKinney / @wesm: |
Phillip Cloud / @cpcloud: |
Antony Mayi / @antonymayi: |
Wes McKinney / @wesm: |
throws following exception:
Same problem with other special decimal values like
infinity
.Reporter: Antony Mayi / @antonymayi
Assignee: Phillip Cloud / @cpcloud
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-2145. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: