dataframe删掉某列

df.drop(da_all.columns[[1, 2]], axis=1,inplace=True)#由于没有设置列名,所以需要用列的index表示,axis=1表示列,inplace表示在原地删除
posted @ 2019-05-03 20:45  巴拉巴拉程序猿  Views(2038)  Comments(0Edit  收藏  举报