hig*_*ost 5 python pandas
如何在一次通过中删除多个列?我知道这很有效
del df['A'] del df['B']
但
del df[['A', 'B']]
没有.
Jon*_*nts 9
你可以使用.drop:
.drop
df = df.drop(['A', 'B'], axis=1)
归档时间:
12 年,10 月 前
查看次数:
6495 次
最近记录: