Skip to content

Commit

Permalink
Add punctuation to IntervalArray docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
sparalic committed Aug 20, 2019
1 parent be6c369 commit 02c7720
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pandas/core/arrays/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def from_arrays(cls, left, right, closed="right", copy=False, dtype=None):
_interval_shared_docs[
"from_tuples"
] = """
Construct an %(klass)s from an array-like of tuples
Construct an %(klass)s from an array-like of tuples.
Parameters
----------
Expand Down Expand Up @@ -854,31 +854,31 @@ def _format_space(self):
def left(self):
"""
Return the left endpoints of each Interval in the IntervalArray as
an Index
an Index.
"""
return self._left

@property
def right(self):
"""
Return the right endpoints of each Interval in the IntervalArray as
an Index
an Index.
"""
return self._right

@property
def closed(self):
"""
Whether the intervals are closed on the left-side, right-side, both or
neither
neither.
"""
return self._closed

_interval_shared_docs[
"set_closed"
] = """
Return an %(klass)s identical to the current one, but closed on the
specified side
specified side.
.. versionadded:: 0.24.0
Expand Down Expand Up @@ -917,7 +917,7 @@ def set_closed(self, closed):
def length(self):
"""
Return an Index with entries denoting the length of each Interval in
the IntervalArray
the IntervalArray.
"""
try:
return self.right - self.left
Expand Down Expand Up @@ -945,7 +945,7 @@ def mid(self):
] = """
Return True if the %(klass)s is non-overlapping (no Intervals share
points) and is either monotonic increasing or monotonic decreasing,
else False
else False.
"""
# https://github.com/python/mypy/issues/1362
# Mypy does not support decorated properties
Expand Down Expand Up @@ -995,7 +995,7 @@ def __array__(self, dtype=None):
_interval_shared_docs[
"to_tuples"
] = """
Return an %(return_type)s of tuples of the form (left, right)
Return an %(return_type)s of tuples of the form (left, right).
Parameters
----------
Expand Down

0 comments on commit 02c7720

Please sign in to comment.