text_plain_output_1.png
import pandas as pd

payments = pd.read_csv('../input/credit-risk-classification-dataset/payment_data.csv')
payments = payments.set_index('id')
customers = pd.read_csv('../input/credit-risk-classification-dataset/customer_data.csv')
customers = customers.set_index('id')
customer_data = customers.join(payments)
customer_data

customer_data.isnull().sum(axis=0)

for prod_code in customer_data['prod_code'].unique():
    customer_data['prod_code_{}'.format(prod_code)] = customer_data['prod_code'] == prod_code
for feature_id in [1, 3, 5, 6, 7, 9]:
    for value in customer_data['fea_{}'.format(feature_id)].unique():
        customer_data['feature_{}_{}'.format(feature_id, value)] = customer_data['fea_{}'.format(feature_id)] == value
customer_data