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

Fix BUG: Cannot shift Intervals that are not closed='right' (the default) #60407

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

lfffkh
Copy link
Contributor

@lfffkh lfffkh commented Nov 23, 2024

I made a small modification by adding the closed attribute when creating empty positions for movement. Now we can output the moved result correctly according to the requirements in the issue

0           NaN
1    [1.0, 2.0)
dtype: interval

At the same time, I added a little test for this modification.

If my understanding of the problem is beyond the problem, or if my modifications are incorrect, please feel free to point them out

@mroeschke mroeschke added the Interval Interval data type label Nov 25, 2024
@mroeschke mroeschke modified the milestones: 2.3, 3.0 Nov 25, 2024
@mroeschke mroeschke merged commit cbd90ba into pandas-dev:main Nov 25, 2024
55 checks passed
@mroeschke
Copy link
Member

Thanks @lfffkh

snitish pushed a commit to snitish/pandas that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Cannot shift Intervals that are not closed='right' (the default)
2 participants