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
If the input data is of a different type then the no replacement will be performed.
But it does not feel intuitive to me to not replace the value (and not provide a warning), especially if it could be directly converted into the type of column values.
Is there something that could be done to not "silently fail" if the value is not replaced?
The text was updated successfully, but these errors were encountered:
Simply adding a type conversion would break this functionality and adding a warning would be very noisy. My only thought is that you could probably use typejoin and either iteratively/recursively call supertype to identify the closest match. Though I don't think the added complexity and overhead would be worth it.
Thank you for the explanation. My example was only considering replacing the values for one column. In the more general context of replacing values for more than one column, the design makes sense to me.
Would you mind me creating a PR to update the documentation such that the example shows a case where the values are not replaced and maybe add a caveat box to highlight the behavior?
I was struggle a bit with the
Impute.replace
functionality, as at first I did not realize that replacing0
is not the same as replacing0.0
.See the following minimal example:
I know it is written in the docs
But it does not feel intuitive to me to not replace the value (and not provide a warning), especially if it could be directly converted into the type of column values.
Is there something that could be done to not "silently fail" if the value is not replaced?
The text was updated successfully, but these errors were encountered: