If X is your dataframe, try using the .astype
method to convert to float when running the model:
est = sm.OLS(y, X.astype(float)).fit()
If X is your dataframe, try using the .astype
method to convert to float when running the model:
est = sm.OLS(y, X.astype(float)).fit()