3. Analyzing Bank Marketing Campaign Data
Activity 3.01: Creating a Leaner Logistic Regression Model
- Start by importing the necessary Python packages:
# import necessary libraries import pandas as pd import numpy as np import statsmodels.api as sm
- Load the data from GitHub:
# pull data from github bank_data = pd.read_csv("https://raw.githubusercontent.com/"\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "PacktWorkshops/"\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "The-Data-Analysis-Workshop/master/"\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "Chapter03/data/bank-additional/"\ Â Â Â Â Â Â Â Â Â Â ...