Reputation: 2488
Here's something I dont understand. When I run this:
dataframe['col_name'].str.get_dummies(sep='|', drop_first=True)
I get: TypeError: get_dummies() got an unexpected keyword argument 'drop_first'
which makes no sense to me when I read this...
I must be missing something. Can anyone help?
Upvotes: 1
Views: 1549
Reputation: 7604
There are 2 get_dummies
:
The one you are using is the second one which does not have drop_first
Upvotes: 1