@@ -158,16 +158,6 @@ cdef class Interval(IntervalMixin):
158
158
Whether the interval is closed on the left-side, right-side, both or
159
159
neither. See the Notes for more detailed explanation.
160
160
161
- See Also
162
- --------
163
- IntervalIndex : An Index of Interval objects that are all closed on the
164
- same side.
165
- cut : Convert continuous data into discrete bins (Categorical
166
- of Interval objects).
167
- qcut : Convert continuous data into bins (Categorical of Interval objects)
168
- based on quantiles.
169
- Period : Represents a period of time.
170
-
171
161
Notes
172
162
-----
173
163
The parameters `left` and `right` must be from the same type, you must be
@@ -236,6 +226,16 @@ cdef class Interval(IntervalMixin):
236
226
>>> volume_1 = pd.Interval('Ant', 'Dog', closed='both')
237
227
>>> 'Bee' in volume_1
238
228
True
229
+
230
+ See Also
231
+ --------
232
+ IntervalIndex : An Index of Interval objects that are all closed on the
233
+ same side.
234
+ cut : Convert continuous data into discrete bins (Categorical
235
+ of Interval objects).
236
+ qcut : Convert continuous data into bins (Categorical of Interval objects)
237
+ based on quantiles.
238
+ Period : Represents a period of time.
239
239
"""
240
240
_typ = " interval"
241
241
@@ -387,11 +387,6 @@ cdef class Interval(IntervalMixin):
387
387
bool
388
388
``True`` if the two intervals overlap, else ``False``.
389
389
390
- See Also
391
- --------
392
- IntervalArray.overlaps : The corresponding method for IntervalArray
393
- IntervalIndex.overlaps : The corresponding method for IntervalIndex
394
-
395
390
Examples
396
391
--------
397
392
>>> i1 = pd.Interval(0, 2)
@@ -414,6 +409,11 @@ cdef class Interval(IntervalMixin):
414
409
>>> i6 = pd.Interval(1, 2, closed='neither')
415
410
>>> i4.overlaps(i6)
416
411
False
412
+
413
+ See Also
414
+ --------
415
+ IntervalArray.overlaps : The corresponding method for IntervalArray
416
+ IntervalIndex.overlaps : The corresponding method for IntervalIndex
417
417
"""
418
418
if not isinstance (other, Interval):
419
419
msg = ' `other` must be an Interval, got {other}'
0 commit comments