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
The RandomOversampler crashes with an Cannot cast DatetimeArray to dtype timedelta64[ns] error when a timedelta64[ns] column with only NaTs is present in the dataframe.
If only one of the elements is an actual timedelta64, no error occurs.
Hi!
Describe the bug
The
RandomOversampler
crashes with anCannot cast DatetimeArray to dtype timedelta64[ns]
error when atimedelta64[ns]
column with onlyNaT
s is present in the dataframe.If only one of the elements is an actual timedelta64, no error occurs.
Steps/Code to Reproduce
Expected Results
No error should occur and the datatype of the column in the returned dataframe should have the type
timedelta64[ns]
.Actual Results
Here the traceback:
Thanks for your support!
The text was updated successfully, but these errors were encountered: