Learn practical skills, build real-world projects, and advance your career
Updated 5 years ago
#importing all the libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import sys
!{sys.executable} -m pip install pandas-profiling
#import pandas_profiling as pp
from scipy import stats
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from sklearn.metrics import f1_score
from sklearn.metrics import recall_score
from sklearn.metrics import precision_score
from sklearn.linear_model import Ridge
from sklearn.linear_model import Lasso
from sklearn.model_selection import GridSearchCV
import os
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
df = pd.read_csv('telecom_churn_data.csv')
'C:\Users\Arijit' is not recognized as an internal or external command,
operable program or batch file.
import warnings
warnings.filterwarnings('ignore')
#checking the shape of the dataframe
df.shape
(99999, 226)
Original Dataset has 99999
rows and 226
columns
#reading top of the dataframe
df.head()