【发布时间】:2022-01-21 09:11:40
【问题描述】:
我想在数据库上使用 matplotlib 库中的 scatter 函数,但我根本做不到。
下面是我的代码和错误:
import matplotlib as plt
y = df["price"]
x = df["engine-size"]
plt.scatter(x,y)
错误:AttributeError:模块'matplotlib'没有属性'scatter'
【问题讨论】:
标签: python matplotlib scatter