We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cut
1 parent 182f94e commit f3e84d2Copy full SHA for f3e84d2
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