We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cut
1 parent 4f664f1 commit 3bd27ffCopy full SHA for 3bd27ff
pandas/core/reshape/tile.py
@@ -73,7 +73,7 @@ def cut(
73
74
Parameters
75
----------
76
- x : array-like
+ x : 1d ndarray or Series
77
The input array to be binned. Must be 1-dimensional.
78
bins : int, sequence of scalars, or IntervalIndex
79
The criteria to bin by.
@@ -126,7 +126,7 @@ def cut(
126
Categorical for all other inputs. The values stored within
127
are whatever the type in the sequence is.
128
129
- * False : returns an ndarray of integers.
+ * False : returns a 1d ndarray or Series of integers.
130
131
bins : numpy.ndarray or IntervalIndex.
132
The computed or specified bins. Only returned when `retbins=True`.
0 commit comments