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?
There are 2 get_dummies
:
The one you are using is the second one which does not have drop_first