Skip to content

refactor: Simplify pd.ArrowDtype -> nw.DType#3413

Merged
dangotbanned merged 11 commits intomainfrom
pandas-dtype-do-less
Jan 25, 2026
Merged

refactor: Simplify pd.ArrowDtype -> nw.DType#3413
dangotbanned merged 11 commits intomainfrom
pandas-dtype-do-less

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jan 22, 2026

Description

We can skip a lot of string manipulation by just using pandas.ArrowDtype.pyarrow_dtype

Pretty sure there's more of these to be found.
Was half expecting this to break in CI somehow, since it seemed too obvious

Related issues

Spotted while reviewing #3377

Pretty sure there's more of these to be found
@dangotbanned dangotbanned added dtypes pandas-like Issue is related to pandas-like backends labels Jan 22, 2026
@dangotbanned
Copy link
Member Author

@FBruzzesi AFAICT this is all good so far in (89efe94)

I'm gonna start pulling at the rest and see how much can be removed before collapsing 😂

@dangotbanned dangotbanned marked this pull request as ready for review January 22, 2026 22:10
dangotbanned added a commit that referenced this pull request Jan 24, 2026
Copy link
Member

@FBruzzesi FBruzzesi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dangotbanned - I left a couple of comments but feel free to merge as it is

@dangotbanned dangotbanned merged commit 4178c17 into main Jan 25, 2026
34 checks passed
@dangotbanned dangotbanned deleted the pandas-dtype-do-less branch January 25, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dtypes pandas-like Issue is related to pandas-like backends

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants