text_plain_output_1.png image_output_1.png
import pandas as pd

import statsmodels.api as sm

df1 = pd.read_csv('../input/indiastate/data state.csv')

target = pd.DataFrame(df1.Deceased, columns=['Deceased'])

x = df1['Active']
y = target['Deceased']

model = sm.OLS(y, x).fit()
predictions = model.predict(x)
model.summary()