-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[ENH] Use default EA repr for IntervalArray #26316
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
Changes from 20 commits
c2ab939
f9740c7
54bc56b
95c012a
e7b865c
cc25182
4c86f53
474b4c4
0e07474
c9dea18
55f701a
480d780
3bc839e
3c36719
0a62694
f6d4f03
32ddfa9
0db48c3
5a16fa7
64889ec
5ab6ae9
5f31bca
6bbee48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,28 @@ Backwards incompatible API changes | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- :class:`pandas.core.groupby.GroupBy.transform` now raises on invalid operation names (:issue:`27489`). | ||
- | ||
- :class:`pandas.core.arrays.IntervalArray` adopts a new ``__repr__`` in accordance with other array classes (:issue:`25022`) | ||
|
||
*pandas 0.25.x* | ||
|
||
.. code-block:: ipython | ||
|
||
In [1]: pd.arrays.IntervalArray.from_tuples([(0, 1), (2, 3)]) | ||
Out[1]: | ||
IntervalArray([(0, 1], (2, 3]], | ||
closed='right', | ||
dtype='interval[int64]') | ||
|
||
*pandas 1.0.0* | ||
|
||
.. code-block:: ipython | ||
|
||
In [2]: pd.arrays.IntervalArray.from_tuples([(0, 1), (2, 3)]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is an actual python block I don't think you need the In/Out - that may be causing the CI failure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @WillAyd |
||
Out[2]: | ||
IntervalArray([(0, 1], (2, 3]], | ||
closed='right', | ||
dtype='interval[int64]') | ||
|
||
|
||
.. _whatsnew_1000.api.other: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry could have been clearer but just make this `.. ipython:: python`` for the directive. You shouldn't then need the In / Out below and it will render automatically for you (this is typically what we do with new behavior)