Skip to content

BUG: Fix drop(index=[pd.NA]) for PyArrow-backed Index (GH#63304)#63910

Closed
dedlYTiTAN wants to merge 8 commits intopandas-dev:mainfrom
dedlYTiTAN:fix-gh63304-arrow-drop-na-v2
Closed

BUG: Fix drop(index=[pd.NA]) for PyArrow-backed Index (GH#63304)#63910
dedlYTiTAN wants to merge 8 commits intopandas-dev:mainfrom
dedlYTiTAN:fix-gh63304-arrow-drop-na-v2

Conversation

@dedlYTiTAN
Copy link

Description:
This PR resolves an ArrowInvalid error when dropping pd.NA from Arrow-backed indices. It ensures the value_set in ArrowExtensionArray.isin is correctly cast to the array's native type.

Key Verifications:

  • Validated inplace=True stability.
  • Confirmed no type coercion to NumPy.
  • Verified data alignment across columns.

Your Name and others added 8 commits January 28, 2026 10:39
This PR resolves an ArrowInvalid error when dropping pd.NA from Arrow-backed indices. It ensures the value_set in ArrowExtensionArray.isin is correctly cast to the array's native type.
Fixes CI failures on older environments where ArrowDtype cannot be instantiated/used. Requires pyarrow>=13.0.0.
@jbrockmendel jbrockmendel added the AI Slop Suspected of being AI-generated, which is not welcome. label Jan 29, 2026
@mroeschke mroeschke closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Slop Suspected of being AI-generated, which is not welcome.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG(pandas 3.0 regression): drop(index=...) doesn't accept NA values when using arrow dtype in index

3 participants