如何使用 Python 更有效地通过线性回归分析这个数据集?

问题描述 投票:0回答:1

有没有办法利用线性回归来预测交通事故趋势?我是 Python 新手,我被困在将列转换为 DataFrame 的部分上。

这是我需要使用的数据集:https://www.kaggle.com/datasets/sobhanmoosavi/us-accidents

我使用了 plt.scatter 和 plt.show() 等函数,但由于某种原因它不起作用。

python machine-learning scikit-learn linear-regression prediction
1个回答
0
投票

使用 pandas 转换数据框并进行分散,确保安装了 matplot 库

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.