import pandas as pd
import numpy as np
test1 = pd.read_csv('./test.csv',encoding='utf-8',index_col=0)
test1
# 获取特征名称
features = [x for x in test3.columns if x not in ['pos','LABEL']]
#将特征数据类型转换为分类数据
for col in features:
test2[col] = test2[col].astype('category',copy=False)