jacobkap / fastDummies

The goal of fastDummies is to quickly create dummy variables (columns) and dummy rows.
https://jacobkap.github.io/fastDummies/
Other
36 stars 9 forks source link

Add option to omit colname prefix when only one column is recoded #27

Closed teofiln closed 3 years ago

teofiln commented 3 years ago

Hey @jacobkap,

We've been using your very nice and fast package for creating dummy variables. In most of our use cases, we needed to transform one variable, and ended up having to remove the colname prefix downstream. We thought it might be a nice feature to allow for this omitting of the prefix directly by dummy_cols. Only if recoding one column, of course. This is something the user would have to opt into. I made this amendment to the function and wrote a couple of unit tests to ensure it does not interfere with existing functionality.

Have a look at this if you have a chance.

jacobkap commented 3 years ago

Hi @teofiln, thanks for the PR!