2024-04-20 06:41:03 发布
网友
如何在一次传递中删除多个列?我知道这行得通
del df['A'] del df['B']
但是
del df[['A', 'B']]
没有
您可以使用.drop:
.drop
df = df.drop(['A', 'B'], axis=1)
您可以使用
.drop
:相关问题 更多 >
编程相关推荐