• pandas factorize用法 对标签进行数值编码 相当于label encoding xff0c 按照标签在data中出现的先后顺序 span class token keyword import span pandas span