Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String dtype: coerce missing values in indexers for string dtype Index #60454

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jorisvandenbossche
Copy link
Member

Closes #59879

Re-taking part of the changes in #60329 that I had removed from that PR to let that just focus on fixing looking up its "native" missing value for string dtype. This PR then relaxes that restriction to allow looking up other missing values as well.

@jorisvandenbossche jorisvandenbossche added Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Strings String extension data type and string data labels Nov 30, 2024
@jorisvandenbossche jorisvandenbossche added this to the 2.3 milestone Nov 30, 2024
@WillAyd
Copy link
Member

WillAyd commented Dec 2, 2024

lgtm. I don't think the macOS failures are related?

Comment on lines +6224 to +6227
# elif self.dtype == "string" and other.dtype == "object":
# if lib.is_string_array(other._values, skipna=True): # type: ignore[arg-type]
# return self, other.astype(self.dtype)

Copy link
Member

Choose a reason for hiding this comment

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

Can all this be removed now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG (string dtype): looking up missing value in the Index fails
3 participants