Closed
Description
The documentation for pandas.cut
says that the output return type depends on the value of the labels
parameter, and when this is False
:
pandas/pandas/core/reshape/tile.py
Line 130 in 93b5135
But if the input to
cut
is a Series
, then the output is as well, either with dtype=int64
if there are no NaN
s in the result, or float64
if there are; an example of this behaviour appears in the documentation for the function.