python - 如何在 matplotlib 中绘制多元列与连续数据列的图?
问题描述
我正在研究房价数据。图像中显示了数据集的DataFrame([1]:https : //i.stack.imgur.com/bZPke.png )。我想研究列 area_type 和 price 之间的关系数据框。area_type 共有 4 个值,我想知道 area_type 列是否影响价格。为此,我想绘制 area_type 与价格的关系图,以便表示属于不同 area_type 的数据点通过不同的符号。如何使用 matplotlib 做到这一点?
解决方案
推荐阅读
- javascript - 如何在 Geojson 中突出显示特定国家/地区?
- antlr - 有没有为excel函数提供ANTLR语法的资源?
- javascript - React 使用 useContext 和 useReducer 钩子问题
- ffmpeg - rtmp输入流结束时如何使ffmpeg退出?
- git - 将头部移动到 git 中的当前分支
- ant - 如何告诉 Ant 使用哪个 JDK 编译?
- javascript - 函数中的字符串参数问题
- pandas - DataFrame子类的切片
- javascript - 当我尝试连接到 AWS MSK 代理时连接超时
- android-studio - Android Studio Arctic Fox (2020.3.1) 在加载 XML 时崩溃