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
This happens because the column data type changes to match the input value's type. While this behavior is consistent, it is not intuitive and should match the original column's data type. How about changing this behavior?
However, as a result of changing the behavior, if the column type is uint8 and the replacement value is of type double or a large integer, the replacement data will be corrupted. It would be useful to have a method for easier data type casting or to allow specifying the data type as a keyword argument in the replace method, e.g., .replace(…, data_type: :double).
I'd appreciate any comments or ideas on this matter.
Thanks.
The text was updated successfully, but these errors were encountered:
I've encountered a problem where replacing values in a DataFrame corrupts the original column data.
This happens because the column data type changes to match the input value's type. While this behavior is consistent, it is not intuitive and should match the original column's data type. How about changing this behavior?
However, as a result of changing the behavior, if the column type is
uint8
and the replacement value is of typedouble
or a large integer, the replacement data will be corrupted. It would be useful to have a method for easier data type casting or to allow specifying the data type as a keyword argument in thereplace
method, e.g.,.replace(…, data_type: :double)
.I'd appreciate any comments or ideas on this matter.
Thanks.
The text was updated successfully, but these errors were encountered: