Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pd.get_dummies

>>> s = pd.Series(list('abca'))

>>> pd.get_dummies(s)
   a  b  c
0  1  0  0
1  0  1  0
2  0  0  1
3  1  0  0
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+1 =