I am trying to select all columns in a pandas dataframe in python except the first column using iloc.
I am able to select all column except the last one using the code
Pre_Processed.iloc[:,0:-1]
Could anyone please help me with this?
Try this
Pre_Processed.iloc[:,1:]
Index with iterable works like
iterable[start:end:stride]
Read more about stride in