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

BUG: reindex with expansion and non-nanosecond dtype #53505

Merged
merged 12 commits into from
Jun 20, 2023

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Jun 2, 2023

@mroeschke mroeschke added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Non-Nano datetime64/timedelta64 with non-nanosecond resolution labels Jun 2, 2023
@mroeschke mroeschke added this to the 2.0.3 milestone Jun 2, 2023
@mroeschke mroeschke requested a review from jbrockmendel June 13, 2023 23:04
try:
orig_is_nat = np.isnat(fill_value)
except TypeError:
pass
Copy link
Member

Choose a reason for hiding this comment

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

this seems fine, but is making me wonder if we should remove the caching on maybe_promote

Copy link
Member Author

Choose a reason for hiding this comment

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

It appears this was done for performance reasons(?), but it certainly makes this a little more complex

Copy link
Member

Choose a reason for hiding this comment

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

definitely for perf reasons, im pretty sure for ArrayManager

@mroeschke mroeschke merged commit d2d830d into pandas-dev:main Jun 20, 2023
@mroeschke mroeschke deleted the bug/nonnano/expansion branch June 20, 2023 20:44
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jun 20, 2023
mroeschke added a commit that referenced this pull request Jun 20, 2023
…on-nanosecond dtype) (#53748)

Backport PR #53505: BUG: reindex with expansion and non-nanosecond dtype

Co-authored-by: Matthew Roeschke <[email protected]>
canthonyscott pushed a commit to canthonyscott/pandas-anthony that referenced this pull request Jun 23, 2023
* BUG: reindex with expansion and non-nanosecond dtype

* Restrict to timelike types

* Check earlier

* handle NA

* handle NA

* Better check
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* BUG: reindex with expansion and non-nanosecond dtype

* Restrict to timelike types

* Check earlier

* handle NA

* handle NA

* Better check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Non-Nano datetime64/timedelta64 with non-nanosecond resolution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Data corruption when mode is performed on timedelta64 dtype in pandas-2.0
2 participants