Posts by catsandc • 31 points
3 posts
-
-1
votes1
answer83
viewsQ: Where is the Output error?
I am using the Pandas library (from Python). I opened my CSV file with head function(), However, the output obtained has the data/values all together. Where is the bug/ How can I fix?…
-
-2
votes2
answers136
viewsQ: What does test_size = 20 mean?
I have the following line of code: X_train,X_test,y_train,y_test = train_test_split(X,Y, test_size = 20, random_state = 0) What does test_size = 20?
-
0
votes1
answer148
viewsQ: What does "[:, : -1]" mean after iloc in Python?
I have the following line of code: X = data.iloc[:, :-1].values I can’t understand why : before the -1.