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

data = pd.read_csv('../input/loan.csv', low_memory=False)

data = data[(data.loan_status == 'Fully Paid') | (data.loan_status == 'Default')]

data['target'] = data.loan_status == 'Fully Paid'

data.shape

print(f"The mean of loan amount: {data['loan_amnt'].mean()}")
print(f"The median of loan amount: {data['loan_amnt'].median()}")
print(f"The maximum of loan amount: {data['loan_amnt'].max()}")
print(f"The standard deviation of loan amount: {data['loan_amnt'].std()}")