Skip to content

Commit f3e84d2

Browse files
fbourgeyShashwatAgrawal20
authored andcommitted
DOC: Update parameter descriptions in cut function for clarity (pandas-dev#60839)
1 parent 182f94e commit f3e84d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/reshape/tile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def cut(
7373
7474
Parameters
7575
----------
76-
x : array-like
76+
x : 1d ndarray or Series
7777
The input array to be binned. Must be 1-dimensional.
7878
bins : int, sequence of scalars, or IntervalIndex
7979
The criteria to bin by.
@@ -126,7 +126,7 @@ def cut(
126126
Categorical for all other inputs. The values stored within
127127
are whatever the type in the sequence is.
128128
129-
* False : returns an ndarray of integers.
129+
* False : returns a 1d ndarray or Series of integers.
130130
131131
bins : numpy.ndarray or IntervalIndex.
132132
The computed or specified bins. Only returned when `retbins=True`.

0 commit comments

Comments
 (0)