Skip to content

Conversation

jbrockmendel
Copy link
Member

This does introduce value-dependent behavior in the dtype of df.iloc[i] but that seems better than raising, and will go away if/when we get to nullable-by-default.

@mroeschke mroeschke added Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Categorical Categorical Data Type labels Sep 4, 2025
@mroeschke mroeschke added this to the 3.0 milestone Sep 4, 2025
@mroeschke mroeschke merged commit f1aaa39 into pandas-dev:main Sep 4, 2025
46 of 47 checks passed
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-58954 branch September 4, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Column of dtype Categorical in DataFrame encounters error when taking a row that includes nan in the column
2 participants