pandas 删除列

ddf = pd.DataFrame({"id":[1,2,3], "name":[4,5,6],"age":[7,8,9]})
ddf = ddf.drop(columns =["id","name"])
ddf

posted @ 2020-11-29 11:44  qiezi_online  阅读(79)  评论(0编辑  收藏  举报