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/"\ ...