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
{{ message }}
Repository navigation
Series.map(func: Series) is broken in most cases #12426
pd.Series.map and pd.Index.map when the argument is a Series have the issue that the output dtype can change dynamically.
This is why these methods in Dask expose a meta= argument and warn loudly if the user does not explicitly provide it.
Expected behaviour
As long as the user provides the same meta= that would (could) actually be produced by Pandas, then the output dd.Series.dtype, the partitions' dtypes and the computed dtype all match the provided dtype. compute() crashes loudly and early if the meta dtype cannot accommodate the actual data (like converting an array with NaNs or N/As to non-nullable numpy integers).
Actual behaviour
dd.Index does not support N/A
in some cases, the output's meta dtype does not match the one passed to the function
in many cases, compute() crashes
even in the trivial use case where pandas does not change the dtype (pd.Series.map(x).dytpe == x.dtype), there are small dtype mismatches in arrow and pandas dtypes between pandas and Dask
Activity