df.drop()

df.drop('col',axis=1)

df.drop(['col'],axis=1)

都是删除col列,效果完全相同。

posted @ 2020-10-26 11:30  李思爱学习  阅读(1025)  评论(1编辑  收藏  举报