+ 1
Why am I getting error ?
I am having a dataset of 2 columns . I'm splitting the dataset into x and y X = dataset.iloc[:,1] # doesn't work X = dataset.iloc[:,1:-1] #works Even though it is meant the same it is showing error !
1 Respuesta
+ 4
It's not the same
[:,1:-1] means it's counting in reverse