Numeric conversion

Let's now convert all of the columns into numeric format:

X_train.loc[:,X_train.columns] = X_train.loc[:,X_train.columns].apply(pd.to_numeric)
X_test.loc[:,X_test.columns] = X_test.loc[:,X_test.columns].apply(pd.to_numeric)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset