Here’s a one-liner that does not require specifying the column name
df.drop(df.columns[len(df.columns)-1], axis=1, inplace=True)
Here’s a one-liner that does not require specifying the column name
df.drop(df.columns[len(df.columns)-1], axis=1, inplace=True)