You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if the input to cut is a Series, then the output is as well, either with dtype=int64 if there are no NaNs in the result, or float64 if there are; an example of this behaviour appears in the documentation for the function.
The text was updated successfully, but these errors were encountered:
The documentation for
pandas.cut
says that the output return type depends on the value of thelabels
parameter, and when this isFalse
:pandas/pandas/core/reshape/tile.py
Line 130 in 93b5135
But if the input to
cut
is aSeries
, then the output is as well, either withdtype=int64
if there are noNaN
s in the result, orfloat64
if there are; an example of this behaviour appears in the documentation for the function.The text was updated successfully, but these errors were encountered: