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
I am not fully sure about the intent of astype_nansafe or whether this was intentional (I would say it is a bug, as I would expect that function to take care of whether copy=False is possible or not).
This also causes a bug in SparseArray's astype with copy=False:
So our internal
astype_nansafe
has the following behaviour:where it seems it assumes it can take a view if
copy=False
, which of course depends on the dtype it is casting to:pandas/pandas/core/dtypes/cast.py
Line 990 in 043b609
I am not fully sure about the intent of
astype_nansafe
or whether this was intentional (I would say it is a bug, as I would expect that function to take care of whethercopy=False
is possible or not).This also causes a bug in SparseArray's
astype
withcopy=False
:The text was updated successfully, but these errors were encountered: