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

pyarrow got wrong result when null #45337

Open
wonb168 opened this issue Jan 23, 2025 · 0 comments
Open

pyarrow got wrong result when null #45337

wonb168 opened this issue Jan 23, 2025 · 0 comments

Comments

@wonb168
Copy link

wonb168 commented Jan 23, 2025

Describe the bug, including details regarding any error messages, version, and platform.

when pandas has a null column,compare will get a False,

import duckdb as dd
df=dd.sql("select null as id").df()
df['id']>1

0 False
Name: id, dtype: bool

but change to arrow, will get NA, how to get False?

import pyarrow as pa
import pandas as pd
df2=pa.Table.from_pandas(df).to_pandas(types_mapper=pd.ArrowDtype,use_threads=True)
df2['id']>1

0
Name: id, dtype: bool[pyarrow]

Component(s)

Python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant