-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Closed
Closed
Copy link
Labels
API DesignArrowpyarrow functionalitypyarrow functionalityIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesStringsString extension data type and string dataString extension data type and string data
Milestone
Description
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
idx = pd.Index(["a", "b", None], dtype="string[pyarrow_numpy]")
idx.get_indexer([None])Issue Description
This returns -1 for the new arrow string dtype because we cast None to np.nan when creating the array. We wanted to be as close to object dtype as possible, but patching this does not seem ideal. Thoughts?
Expected Behavior
see above
Installed Versions
Replace this line with the output of pd.show_versions()
Metadata
Metadata
Assignees
Labels
API DesignArrowpyarrow functionalitypyarrow functionalityIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesStringsString extension data type and string dataString extension data type and string data