Posts by Matheus Stein • 17 points
2 posts
-
-1
votes1
answer18
viewsQ: How to separate in x and y being all but the last x and the last y?
I am doing a function to generalize a train_test_split, and for that desire separates within the function the X and the y. Currently my code is like this: python def split(dados): SEED = 42367 X =…
-
1
votes1
answer41
viewsQ: How do I create a variable with some columns of my data frame?
I have a data frame with 10 columns and wanted to extract 4 of these columns for a variable. I even tried to make a list and use the list but the code was not clean, I know there are ways to extract…