Skip to content

Commit 8415bb7

Browse files
committed
docs
1 parent 8226cc3 commit 8415bb7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pandas/indexes/interval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class IntervalIndex(IntervalMixin, Index):
7373
Immutable Index implementing an ordered, sliceable set. IntervalIndex
7474
represents an Index of intervals that are all closed on the same side.
7575
76-
.. versionadded:: 0.18
76+
.. versionadded:: 0.20.0
7777
7878
Properties
7979
----------

pandas/src/interval.pyx

+14
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ cdef _interval_like(other):
4646

4747

4848
cdef class Interval(IntervalMixin):
49+
"""
50+
Immutable object implementing an Interval, a bounded slice-like interval.
51+
52+
.. versionadded:: 0.20.0
53+
54+
Properties
55+
----------
56+
left, right : values
57+
Left and right bounds for each interval.
58+
closed : {'left', 'right', 'both', 'neither'}
59+
Whether the interval is closed on the left-side, right-side, both or
60+
neither. Defaults to 'right'.
61+
"""
62+
4963
cdef readonly object left, right
5064
cdef readonly str closed
5165

0 commit comments

Comments
 (0)