how to select all but last columns in python

68

how to select all but last columns in python -

df.iloc[:,:-1]

Comments

Submit
0 Comments