📜  删除列 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:44.531000             🧑  作者: Mango

代码示例6
df.drop(['column_1', 'Column_2'], axis = 1, inplace = True) 
# Remove all columns between column index 1 to 3
df.drop(df.iloc[:, 1:3], inplace = True, axis = 1)