image_output_1.png
import numpy as np # linear algebra

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

TARGET = 'Is_CANCELLED'
NA_CATEGORY = 'NA_'

train = pd.read_csv('/kaggle/input/techcom-ai-competition/train.csv')
test = pd.read_csv('/kaggle/input/techcom-ai-competition/test.csv')
sample_sub = pd.read_csv('/kaggle/input/techcom-ai-competition/sample_submission.csv')
train.rename(columns={'MEMBERSHIP_STATUS': 'Is_CANCELLED'}, inplace=True)
train[TARGET] = train[TARGET].map({'INFORCE': 0, 'CANCELLED': 1})
test['END_DATE'] = np.nan
display(train)
display(test)
display(sample_sub)