text_plain_output_1.png
import pandas as pd

df = pd.read_csv('../input/churn-prediction/Churn.csv')

df.shape

df.isna().sum()

df.dtypes

df['TotalCharges'] = df.TotalCharges.convert_objects(convert_numeric=True)

df['tenure_range'] = pd.cut(df.tenure, [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75], right=True)

df['tenure_range'].value_counts()