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

train_df = pd.read_csv('/kaggle/input/insurance-churn-prediction-weekend-hackathon/Insurance_Churn_ParticipantsData/Train.csv')
test_df = pd.read_csv('/kaggle/input/insurance-churn-prediction-weekend-hackathon/Insurance_Churn_ParticipantsData/Test.csv')

train_df.rename(columns={'labels': 'churn'}, inplace=True)

train_df.describe().T

features = list(train_df.columns)
features.remove('churn')
features

float_features = [i for i in train_df.columns if train_df[i].dtype == 'float64']
float_features

int_features = [i for i in train_df.columns if train_df[i].dtype == 'int64']
int_features.remove('churn')
int_features