摘要:
import pandas as pd import statsmodels.api as sm from statsmodels.formula.api import ols data = pd.DataFrame({ "city": [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 阅读全文
摘要:
import pandas as pd import statsmodels.api as sm from statsmodels.formula.api import ols 读取 Excel 文件 data = pd.read_excel('9.4.xlsx') 定义模型 model = ols 阅读全文