Question: Use python pandas please~ zuU rows 6 columns Question 2: /7 pts Split the data into train and test for the outcome/response and the predictor

Use python pandas please~Use python pandas please~ zuU rows 6 columns Question 2: /7 ptsSplit the data into train and test for the outcome/response and the

zuU rows 6 columns Question 2: /7 pts Split the data into train and test for the outcome/response and the predictor variables. Hold out 25% of observations as the test set. Pass random_state to train_test_split to ensure you get the same train and tests sets as the solution. Your dependent variable in the the dataset is named as Drug . How many patients who take "DrugY" in the train dataset and test dataset, respectively? \# Question 2 code bere. HDor't use the "Drug as a feature H6 pts correct code YOUR ANSWER HERE: [1pt]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!