Skip to content

ENH: make closed part of IntervalDtype #37933

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

Closed

Conversation

jbrockmendel
Copy link
Member

cc @jschendel

Still need to figure out what to do for backwards compat for unpickled IntervalDtype objects; ATM this just sets closed=None.

This causes IntervalIndex.append to cast to object dtype instead of raising if we try to append a non-matching closed. I think thats the right thing to do, but we haven't fully discussed that xref #37774

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Interval Interval data type labels Nov 19, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

conceptually on board

@jbrockmendel
Copy link
Member Author

updated to fix doctests, raise on mismatched 'closed'. still not wild about how we're handling old pickles, and ATM still allowing closed=None to be passed to the constructor

@jbrockmendel
Copy link
Member Author

mothballing to clear the queue while i figure out the pickle thing locally.

@jbrockmendel jbrockmendel added the Mothballed Temporarily-closed PR the author plans to return to label Nov 24, 2020
@jbrockmendel jbrockmendel removed the Mothballed Temporarily-closed PR the author plans to return to label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: Add closed to IntervalDtype
2 participants