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
1 should be interpreted as positional. renamecols solves the problem where src and dest are the same integer. But if they were different one might want to write
2 => f => 1
to take the 2nd column, apply f, then stick the result in the 1st position.
fwiw I don't think this is a good idea or a feature that should be added at the point. Closing, at least we can point to this issue in the future if needed.
position is determined by the order of transformations passed. The problem is that if you pass 1 as output position there is no way to determine what should be the name of this column (note that the name is for NEW data frame, which is initially empty i.e. does not have any names)
2 as source specifier is fully un-ambiguous as OLD data frame has some columns and we can check what is the name and value of column #2.
Motivated by this discourse discussion
MWE:
The text was updated successfully, but these errors were encountered: