Skip to content

Commit baa2950

Browse files
committed
DOC: Fix docstrings with the sections in the wrong order #24280
1 parent 4446942 commit baa2950

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/_libs/interval.pyx

+13-13
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,6 @@ cdef class Interval(IntervalMixin):
167167
qcut : Convert continuous data into bins (Categorical of Interval objects)
168168
based on quantiles.
169169
Period : Represents a period of time.
170-
"""
171-
_typ = "interval"
172-
173-
cdef readonly object left
174-
"""Left bound for the interval"""
175-
176-
cdef readonly object right
177-
"""Right bound for the interval"""
178-
179-
cdef readonly str closed
180-
"""
181-
Whether the interval is closed on the left-side, right-side, both or
182-
neither
183170
184171
Notes
185172
-----
@@ -250,6 +237,19 @@ cdef class Interval(IntervalMixin):
250237
>>> 'Bee' in volume_1
251238
True
252239
"""
240+
_typ = "interval"
241+
242+
cdef readonly object left
243+
"""Left bound for the interval"""
244+
245+
cdef readonly object right
246+
"""Right bound for the interval"""
247+
248+
cdef readonly str closed
249+
"""
250+
Whether the interval is closed on the left-side, right-side, both or
251+
neither
252+
"""
253253

254254
def __init__(self, left, right, str closed='right'):
255255
# note: it is faster to just do these checks than to use a special

0 commit comments

Comments
 (0)