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

BUG: arrow backend get wrong result #60770

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

BUG: arrow backend get wrong result #60770

wonb168 opened this issue Jan 23, 2025 · 0 comments
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@wonb168
Copy link

wonb168 commented Jan 23, 2025

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

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

when pandas has a null columncompare will get a Falseimport 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    <NA>
Name: id, dtype: bool[pyarrow]

### Component(s)

Python

Issue Description

pandas2.2.3,use arrow backend,
got NA,need False,
how to got same result?

Expected Behavior

df['id']>1,want return False

Installed Versions

pandas2.2.3

@wonb168 wonb168 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

1 participant