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
Great question, I stumbled in this behavior again today. I think it is a bug, because the documentation uses as the first example of @byrow!:
@byrow! df if :A > :B; :A = :B * :C end
That makes no sense without the input argument mutation. Then, in the sequence, in the context of the special syntax for new columns, the documentation says:
Note that the returned AbstractDataFrame includes these new columns, but the original df is not affected.
As this was an exception of the behavior just for the case in which new columns are added.
Why does
@byrows!
contain the bang (!) at the end of its name when it is not modifying the input argument?An example
First, define some DataFrame
df
Now do some modifications using
@byrows!
and yet the original DataFrame
df
remains intact:The text was updated successfully, but these errors were encountered: