Series.str.get_dummies()
pandas.Series.str.get_dummies
-
Series.str.get_dummies(sep='|')
-
Split each string in the Series by sep and return a frame of dummy/indicator variables.
Parameters: sep : string, default “|”
String to split on.
Returns: dummies : DataFrame
See also