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

test = pd.read_csv('../input/test.csv', low_memory=False)
train = pd.read_csv('../input/train.csv', low_memory=False)

loans_in_default = train.default.value_counts(True)
print('Question 1:', '\n', '\n', 'Percentage of training set loans in default:', loans_in_default[1] * 100, '%')