179179class IntervalArray (IntervalMixin , ExtensionArray ):
180180 """
181181 Pandas array for interval data that are closed on the same side.
182+
182183 Parameters
183184 ----------
184185 data : array-like (1-dimensional)
@@ -193,6 +194,7 @@ class IntervalArray(IntervalMixin, ExtensionArray):
193194 Copy the input data.
194195 verify_integrity : bool, default True
195196 Verify that the IntervalArray is valid.
197+
196198 Attributes
197199 ----------
198200 left
@@ -202,6 +204,7 @@ class IntervalArray(IntervalMixin, ExtensionArray):
202204 length
203205 is_empty
204206 is_non_overlapping_monotonic
207+
205208 Methods
206209 -------
207210 from_arrays
@@ -211,18 +214,21 @@ class IntervalArray(IntervalMixin, ExtensionArray):
211214 overlaps
212215 set_closed
213216 to_tuples
217+
214218 See Also
215219 --------
216220 Index : The base pandas Index type.
217221 Interval : A bounded slice-like interval; the elements of an IntervalArray.
218222 interval_range : Function to create a fixed frequency IntervalIndex.
219223 cut : Bin values into discrete Intervals.
220224 qcut : Bin values into equal-sized Intervals based on rank or sample quantiles.
225+
221226 Notes
222227 -----
223228 See the `user guide
224229 <https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#intervalindex>`__
225230 for more.
231+
226232 Examples
227233 --------
228234 A new ``IntervalArray`` can be constructed directly from an array-like of
@@ -231,6 +237,7 @@ class IntervalArray(IntervalMixin, ExtensionArray):
231237 <IntervalArray>
232238 [(0, 1], (1, 5]]
233239 Length: 2, dtype: interval[int64, right]
240+
234241 It may also be constructed using one of the constructor
235242 methods: :meth:`IntervalArray.from_arrays`,
236243 :meth:`IntervalArray.from_breaks`, and :meth:`IntervalArray.from_tuples`.
@@ -1979,13 +1986,13 @@ def repeat(
19791986 >>> cat = pd.Categorical(["a", "b", "c"])
19801987 >>> cat
19811988 ['a', 'b', 'c']
1982- Categories (3, object ): ['a', 'b', 'c']
1989+ Categories (3, str ): ['a', 'b', 'c']
19831990 >>> cat.repeat(2)
19841991 ['a', 'a', 'b', 'b', 'c', 'c']
1985- Categories (3, object ): ['a', 'b', 'c']
1992+ Categories (3, str ): ['a', 'b', 'c']
19861993 >>> cat.repeat([1, 2, 3])
19871994 ['a', 'b', 'b', 'c', 'c', 'c']
1988- Categories (3, object ): ['a', 'b', 'c']
1995+ Categories (3, str ): ['a', 'b', 'c']
19891996 """
19901997 nv .validate_repeat ((), {"axis" : axis })
19911998 left_repeat = self .left .repeat (repeats )
0 commit comments