text_plain_output_1.png
import pandas as pd

df_train = pd.read_csv('../input/train.csv')
df_test = pd.read_csv('../input/test.csv')

n_train = df_train.shape[0]
n_test = df_test.shape[0]
ratio = round(n_train / (n_train + n_test), 1)
print('Number of observations in the training set: %d (%d%%)' % (n_train, ratio * 100))
print('Number of observations in the test set: %d (%d%%)' % (n_test, (1 - ratio) * 100))