Splitting data in logistic regression

X_train = data[:split,:-1]
X_test = data[split:,:-1]

sir, i am unable to understand the role of -1 here. please explain why x_train is getting 2 columns while X-teast is getting just one.

hey @Roopa1i_ma1hotra,

There is no such particular use here , it just shown for a example .

I am not getting this ,it shouldn’t be as such. Can you please share a link to your code , where you are getting this.

Thank You :slightly_smiling_face:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.