📜  pandas read_csv drop last column - Python 代码示例

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

代码示例1
# Drop last column of a dataframe
df = df.iloc[: , :-1]
# Drop last 2 column of a dataframe
df = df.iloc[: , :-2]