-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Merged
mroeschke
merged 4 commits into
pandas-dev:main
from
jorisvandenbossche:string-dtype-index-engine-non-strict-missing
Jan 2, 2025
Merged
String dtype: coerce missing values in indexers for string dtype Index #60454
mroeschke
merged 4 commits into
pandas-dev:main
from
jorisvandenbossche:string-dtype-index-engine-non-strict-missing
Jan 2, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
WillAyd
approved these changes
Dec 2, 2024
lgtm. I don't think the macOS failures are related? |
mroeschke
reviewed
Dec 2, 2024
pandas/core/indexes/base.py
Outdated
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) | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
…engine-non-strict-missing
…engine-non-strict-missing
mroeschke
approved these changes
Jan 2, 2025
Thanks @jorisvandenbossche |
meeseeksmachine
pushed a commit
to meeseeksmachine/pandas
that referenced
this pull request
Jan 2, 2025
…indexers for string dtype Index
jorisvandenbossche
deleted the
string-dtype-index-engine-non-strict-missing
branch
January 2, 2025 20:04
jorisvandenbossche
added a commit
that referenced
this pull request
Jan 3, 2025
…es in indexers for string dtype Index) (#60649) * Backport PR #60454: String dtype: coerce missing values in indexers for string dtype Index * fixup import --------- Co-authored-by: Joris Van den Bossche <[email protected]>
gmcrocetti
pushed a commit
to gmcrocetti/pandas
that referenced
this pull request
Jan 3, 2025
pandas-dev#60454) * String dtype: coerce missing values in indexers for string dtype Index * cleanup
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.