kieferk / dfply

dplyr-style piping operations for pandas dataframes
GNU General Public License v3.0
889 stars 103 forks source link

rename(CUT=X.cut, COLOR='color') - counterintuitive IMO #101

Open simjbaum opened 3 years ago

simjbaum commented 3 years ago

Hi, I found the orientation of renaming the columns counter intuitive in rename(CUT=X.cut, COLOR='color')

"column name wanted" = "old column name" "old column name" = "column name wanted"

best Simon

norabelrose commented 3 years ago

I agree with this too actually, but it mirrors the usage in the dplyr R package. Including a different function with the reverse argument orientation could be nice though.