Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用以下命令时
p = ggplot(aes(x='DTM',y='TMP1'), data=data)
我收到以下错误
NameError: name 'aes' is not defined
你可以帮帮我吗?
您需要导入aes:
aes
from ggplot import aes
或者,您可以只导入ggplot命名空间中的所有内容(尽管*导入通常不受欢迎,因为它们很难追踪名称的来源):
ggplot
*
from ggplot import *