Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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~
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started