Skip to content

BUG: Fix Index constructor with mixed closed Intervals #27173

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

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

jschendel
Copy link
Member

Note that this solution uses the same pattern that's used to support a list of mixed frequency Period objects:

elif inferred == 'period':
try:
return PeriodIndex(subarr, name=name, **kwargs)
except IncompatibleFrequency:
pass

@jschendel jschendel added Bug Interval Interval data type Index Related to the Index class or subclasses labels Jul 2, 2019
@jschendel jschendel added this to the 0.25.0 milestone Jul 2, 2019
@jreback
Copy link
Contributor

jreback commented Jul 2, 2019

lgtm merge one green

@jreback jreback merged commit a99c463 into pandas-dev:master Jul 2, 2019
@jreback
Copy link
Contributor

jreback commented Jul 2, 2019

thanks @jschendel

@jschendel jschendel deleted the index-obj-dtype-mixed-ivs branch July 2, 2019 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Index Related to the Index class or subclasses Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Index constructor raises for a list of mixed closed Interval objects
2 participants