Skip to content

Commit 48eb737

Browse files
committed
fix revert
1 parent 6f5cc3f commit 48eb737

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pandas/core/arrays/interval.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def from_arrays(cls, left, right, closed="right", copy=False, dtype=None):
361361
_interval_shared_docs[
362362
"from_tuples"
363363
] = """
364-
Construct an %(klass)s from an array-like of tuples
364+
Construct an %(klass)s from an array-like of tuples.
365365
366366
Parameters
367367
----------
@@ -854,31 +854,31 @@ def _format_space(self):
854854
def left(self):
855855
"""
856856
Return the left endpoints of each Interval in the IntervalArray as
857-
an Index
857+
an Index.
858858
"""
859859
return self._left
860860

861861
@property
862862
def right(self):
863863
"""
864864
Return the right endpoints of each Interval in the IntervalArray as
865-
an Index
865+
an Index.
866866
"""
867867
return self._right
868868

869869
@property
870870
def closed(self):
871871
"""
872872
Whether the intervals are closed on the left-side, right-side, both or
873-
neither
873+
neither.
874874
"""
875875
return self._closed
876876

877877
_interval_shared_docs[
878878
"set_closed"
879879
] = """
880880
Return an %(klass)s identical to the current one, but closed on the
881-
specified side
881+
specified side.
882882
883883
.. versionadded:: 0.24.0
884884
@@ -917,7 +917,7 @@ def set_closed(self, closed):
917917
def length(self):
918918
"""
919919
Return an Index with entries denoting the length of each Interval in
920-
the IntervalArray
920+
the IntervalArray.
921921
"""
922922
try:
923923
return self.right - self.left
@@ -932,7 +932,7 @@ def length(self):
932932
@property
933933
def mid(self):
934934
"""
935-
Return the midpoint of each Interval in the IntervalArray as an Index
935+
Return the midpoint of each Interval in the IntervalArray as an Index.
936936
"""
937937
try:
938938
return 0.5 * (self.left + self.right)
@@ -945,7 +945,7 @@ def mid(self):
945945
] = """
946946
Return True if the %(klass)s is non-overlapping (no Intervals share
947947
points) and is either monotonic increasing or monotonic decreasing,
948-
else False
948+
else False.
949949
"""
950950
# https://github.com/python/mypy/issues/1362
951951
# Mypy does not support decorated properties
@@ -995,7 +995,7 @@ def __array__(self, dtype=None):
995995
_interval_shared_docs[
996996
"to_tuples"
997997
] = """
998-
Return an %(return_type)s of tuples of the form (left, right)
998+
Return an %(return_type)s of tuples of the form (left, right).
999999
10001000
Parameters
10011001
----------

0 commit comments

Comments
 (0)