df.drop()

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

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

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

原文地址:https://www.cnblogs.com/lao4/p/13877595.html