thisisnic commented on issue #45337: URL: https://github.com/apache/arrow/issues/45337#issuecomment-7185823506
Thanks for reporting this! I'm going through older bug issues to see if we can close them out. This is expected. With `types_mapper=pd.ArrowDtype` the column uses an Arrow-backed dtype, and comparing a null with a value gives null, not `False`, the same as pandas' own nullable dtypes (`pd.Series([pd.NA], dtype="Int64") > 1` is also `<NA>`). To get `False`, either fill the nulls after comparing: ```python (df2["id"] > 1).fillna(False) ``` or call `to_pandas()` without `types_mapper`, which gives the original `False`. Checked on pyarrow 26.0.1 with pandas 3.1.1. Closing as not a bug. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
