首页 > 解决方案 > 如何在 matplotlib 中绘制多元列与连续数据列的图?

问题描述

我正在研究房价数据。图像中显示了数据集的DataFrame([1]:https : //i.stack.imgur.com/bZPke.png )。我想研究列 area_type 和 price 之间的关系数据框。area_type 共有 4 个值,我想知道 area_type 列是否影响价格。为此,我想绘制 area_type 与价格的关系图,以便表示属于不同 area_type 的数据点通过不同的符号。如何使用 matplotlib 做到这一点?

标签: pythonpandasmatplotlib

解决方案


推荐阅读