The OLSResults of
df2 = pd.read_csv("MultipleRegression.csv")
X = df2[['Distance', 'CarrierNum', 'Day', 'DayOfBooking']]
Y = df2['Price']
X = add_constant(X)
fit = sm.OLS(Y, X).fit()
print(fit.summary())
shows the P values of each attribute to only 3 decimal places.
I need to extract the p value for each attribute like Distance
, CarrierNum
etc. and print it in scientific notation.
I can extract the coefficients using fit.params[0]
or fit.params[1]
etc.
Need to get it for all their P values.
Also what does all P values being 0 mean?