Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Feb 5, 2017
1 parent 8226cc3 commit 8415bb7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/indexes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class IntervalIndex(IntervalMixin, Index):
Immutable Index implementing an ordered, sliceable set. IntervalIndex
represents an Index of intervals that are all closed on the same side.
.. versionadded:: 0.18
.. versionadded:: 0.20.0
Properties
----------
Expand Down
14 changes: 14 additions & 0 deletions pandas/src/interval.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ cdef _interval_like(other):


cdef class Interval(IntervalMixin):
"""
Immutable object implementing an Interval, a bounded slice-like interval.
.. versionadded:: 0.20.0
Properties
----------
left, right : values
Left and right bounds for each interval.
closed : {'left', 'right', 'both', 'neither'}
Whether the interval is closed on the left-side, right-side, both or
neither. Defaults to 'right'.
"""

cdef readonly object left, right
cdef readonly str closed

Expand Down

0 comments on commit 8415bb7

Please sign in to comment.