Learn practical skills, build real-world projects, and advance your career

1. Introduction

Customer Churn is when customers leave a service in a given period of time, what is bad for business.

This work has as objective to build a machine learning model to predict what customers will leave the service, the dataset used on this notebook is the Telco Customer Churn hosted at Kaggle. Also, an Exploratory Data Analysis is made to a better understand about the data.
Another point on this work is use Deepnote as development enviroment and the PyCaret Python Module to make all the experiment pipeline.

1.1 Enviroment Setup

The Modules used for this work, highlights for PyCaret and good plots by Plotly.

# Standard
import pandas as pd
import numpy as np
# Pycaret
from pycaret.classification import *
# Plots
from plotly.offline import iplot
import plotly.graph_objects as go
import plotly.figure_factory as ff
from plotly.subplots import make_subplots
import seaborn as sns
# Sklearn tools
from sklearn.preprocessing import LabelEncoder
from sklearn.metrics import *
# Extras
from datetime import date
import warnings
warnings.filterwarnings("ignore")
# Datapath and Setup
data_path = "/datasets/telco-customer-churn/"
random_seed = 142

And the helper functions used on this notebook.