Skip to content

Commit 59e324f

Browse files
DOC: fix ES01 for pandas.Interval.is_empty (pandas-dev#60854)
1 parent aeb634a commit 59e324f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/_libs/interval.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ cdef class IntervalMixin:
209209
"""
210210
Indicates if an interval is empty, meaning it contains no points.
211211
212+
An interval is considered empty if its `left` and `right` endpoints
213+
are equal, and it is not closed on both sides. This means that the
214+
interval does not include any real points. In the case of an
215+
:class:`pandas.arrays.IntervalArray` or :class:`IntervalIndex`, the
216+
property returns a boolean array indicating the emptiness of each interval.
217+
212218
Returns
213219
-------
214220
bool or ndarray

0 commit comments

Comments
 (0)