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 don't understand why categorical(df, cols) exists.
If it is about applying a function (categorical) to multiple columns of a dataframes, there should be a way to do it for any function, not just categorical (I guess that's what transform is about?).
I'm not following the package closely, so sorry if this was discussed somewhere.
The text was updated successfully, but these errors were encountered:
Having said this, I do not see a huge problem to keep categorical and categorical! as convenience functions. We define such functions for most common transformations, so that users have an easier life. @nalimilan - what do you think?
Yes I think it makes sense to have some convenience functions. That's the clearest for allowmissing as it's a very common need, but categorical is already exported since it exists in CategoricalArrays, so adding a new method isn't very costly.
For other functions, mapcols can also be used instead of transform. I guess we could add mapcols! for in-place operation.
Thanks for the explanation! I think it'd be better to have only one way to do things, but that's your choice! I appreciate all the improvement happening these days, by the way. Thanks for your work!
I don't understand why
categorical(df, cols)
exists.If it is about applying a function (
categorical
) to multiple columns of a dataframes, there should be a way to do it for any function, not justcategorical
(I guess that's whattransform
is about?).I'm not following the package closely, so sorry if this was discussed somewhere.
The text was updated successfully, but these errors were encountered: