dodger487 / dplython

dplyr for python
MIT License
763 stars 52 forks source link

Unite #81

Open bleearmstrong opened 8 years ago

bleearmstrong commented 8 years ago

Adds unite (from tidyr) to dplython.

bleearmstrong commented 8 years ago

Before either this or separate are merged, we may want to discuss how parameters should work. In separate, the usage is df >> separate(X.cut, into=['col_1', 'col_2'])

whereas in unite, the usage is df >> unite(into='new_col', cols=[X.col_1, X.col_2])

I'm just wondering what should be defaults, and what should be keywords. These two aren't exactly consistent.