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
Not sure that it's an issue, but as_categorical throws an error in converting integers to categories, like so cars = DataFrame(cylinders=[2, 4, 6, 8]) @mutate cars cylinders = as_categorical(cylinders)
throws MethodError: Cannot convertan object of type Int32 to an object of type String The functionconvert exists, but no method is defined for this combination of argument types.
I understand why this is the case... we could want to depict Int32 as octal, or hex, or whatever. But it seems a common enough problem (cf dataframe column names telling you to cast to Symbol) that there might already be a proper way to deal with this in TidierCats. If not, I propose that there should be.
The text was updated successfully, but these errors were encountered:
Not sure that it's an issue, but as_categorical throws an error in converting integers to categories, like so
cars = DataFrame(cylinders=[2, 4, 6, 8]) @mutate cars cylinders = as_categorical(cylinders)
throws
MethodError: Cannot
convertan object of type Int32 to an object of type String The function
convertexists, but no method is defined for this combination of argument types.
I understand why this is the case... we could want to depict Int32 as octal, or hex, or whatever. But it seems a common enough problem (cf dataframe column names telling you to cast to Symbol) that there might already be a proper way to deal with this in TidierCats. If not, I propose that there should be.
The text was updated successfully, but these errors were encountered: