Answers for "pandas read_csv drop last column"

0

pandas read_csv drop last column

# Drop last column of a dataframe
df = df.iloc[: , :-1]
# Drop last 2 column of a dataframe
df = df.iloc[: , :-2]
Posted by: Guest on August-14-2021

Code answers related to "pandas read_csv drop last column"

Python Answers by Framework

Browse Popular Code Answers by Language