Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get dummies pandas

>>> pd.get_dummies(pd.Series(list('abcaa')), drop_first=True)
   b  c
0  0  0
1  1  0
2  0  1
3  0  0
4  0  0
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #dummies #pandas
ADD COMMENT
Topic
Name
6+7 =