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
Thanks @mistermichaelll for surfacing this, and apologies for the delay in getting back to you.
I don't think we should support y = nothing as dropping the column. This is because of a fundamental difference between how nothing behaves in Julia and how NULL behaves in R.
In R, if you write x = c(1, NULL, 3), the result will be c(1, 3), whereas in Julia, x = [1, nothing, 3] will produce [1, nothing, 3]. Since nothing is a valid value, I don't think we should treat it the same as NULL in R.
More
@mutate
testing fun 😄 this is more of a behavior question rather than a bug.In
dplyr
, you can drop columns usingmutate
by passingNULL
. This is news to me, and I actually only learned this from tests from the source code.For example:
In
Tidier
, I'd imagine that the closest behavior would be something like this:But this doesn't drop the column, rather it just replaces
y
with a column of typenothing
Is dropping a column this way something that should be supported?
The text was updated successfully, but these errors were encountered: