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

Use default EA repr for IntervalArray #25022

Closed
jorisvandenbossche opened this issue Jan 30, 2019 · 1 comment · Fixed by #26316
Closed

Use default EA repr for IntervalArray #25022

jorisvandenbossche opened this issue Jan 30, 2019 · 1 comment · Fixed by #26316
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Interval Interval data type
Milestone

Comments

@jorisvandenbossche
Copy link
Member

IntervalArray still has a custom repr:

In [41]: pd.arrays.IntervalArray.from_breaks(range(3))                                                                                                                          
Out[41]: 
IntervalArray([(0, 1], (1, 2]],
              closed='right',
              dtype='interval[int64]')

We should convert that to the default EA repr.

@jorisvandenbossche jorisvandenbossche added Interval Interval data type ExtensionArray Extending pandas with custom dtypes or arrays. labels Jan 30, 2019
@jorisvandenbossche jorisvandenbossche added this to the Contributions Welcome milestone Jan 30, 2019
@TomAugspurger
Copy link
Contributor

FYI, there are some doctests that are shared between IntervalArray and IntervalIndex.

@jreback jreback modified the milestones: Contributions Welcome, 1.0 Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Interval Interval data type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants