Question: import pandas as pd import numpy as np from matplotlib import pyplot as plt from sklearn import preprocessing #01. Load data with Pandas and output

 import pandas as pd import numpy as np from matplotlib importpyplot as plt from sklearn import preprocessing #01. Load data with Pandas

import pandas as pd import numpy as np from matplotlib import pyplot as plt from sklearn import preprocessing #01. Load data with Pandas and output the basic information of this dataset, such as the features and their data types. data = pd.read_csv ("insurance.csv") print("Basic Information:") print(data.info()) categorical_features = [X for x in data.columns if data[x].dtype "object"] numerical_features = [x for x in data.columns if data[x].dtype != "object"] print("Categorical features:",categorical_features) print("Numerical features:", numerical_features) 1.2 Split the preprocessed dataset into training set and testing set Use 80% of samples as the training set and 20% of samples as the testing set In [15]: # your code

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!