text_html_output_1.png
import pandas as pd

import statsmodels.api as sm

df = pd.read_csv('../input/harddrive.csv', usecols=['failure', 'smart_1_normalized'], nrows=100000)

x = df['smart_1_normalized']
y = df['failure']
x = sm.add_constant(x)
model = sm.GLM(y, x, family=sm.families.Binomial()).fit()

model.summary()