搬砖常用代码
记录一些搬砖常用代码pre-processing
pre-processing
new = df[df.columns[[4, 27, 28, 132,133]]]
取attributes构建新的data frame
new = new.drop(new[new['p_education_sdc']==' '].index)
默认drop行
drop_list = [1,2,3,11,12,13,14, 15,16,17,18,19,20,21,26]
df = df.drop(df.columns[d
原创
2020-05-22 22:39:19 ·
838 阅读 ·
0 评论