text_html_output_1.png
from sklearn.model_selection import train_test_split

import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

train = pd.read_csv('/kaggle/input/ods-mlclass-dubai-2019-03-lecture3-hw/train.csv')
test = pd.read_csv('/kaggle/input/ods-mlclass-dubai-2019-03-lecture3-hw/test.csv')

test['target'] = np.nan
df = pd.concat([train, test])

df.dtypes

df = df.select_dtypes(exclude=['object'])
df

df.isnull().sum()

df.target

X = df.iloc[:, 0:8]
y = df.iloc[:, 7]
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0, test_size=0.2)

y.shape