In [1]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
In [2]:
from sklearn.datasets import load_boston
In [3]:
boston_data = load_boston()
In [4]:
df = pd.DataFrame(boston_data.data, columns=boston_data.feature_names)
In [5]:
df.head()
Out[5]:
In [6]:
df.shape
Out[6]:
In [7]:
X = df
In [8]:
y = boston_data.target
In [10]:
import statsmodels.api as sm
import statsmodels.formula.api as smf
In [ ]: