是将类别转化成编码。
即
col
a
b
c
会变为
col1 col2 col3
1 0 0
0 1 0
0 0 1
数据:
代码:
标签v消失。
pd.get_dummies
原文:https://www.cnblogs.com/hahaah/p/15246525.html