【问题标题】:Gmaps issues on jupyter notebookjupyter笔记本上的Gmaps问题
【发布时间】:2017-10-19 19:30:31
【问题描述】:

我在 python 中加载 gmaps 包。 但是,当在 Jupyther 笔记本中输入命令时:

import gmaps
gmaps.configure(api_key="AI")
data = gmaps.datasets.load_dataset("taxi_rides")*

我有这个错误信息:

*AttributeError: 'module' object has no attribute 'datasets'*

有人知道发生了什么吗?

【问题讨论】:

    标签: google-maps jupyter


    【解决方案1】:

    聚会迟到了,但您没有导入正确的模块:

    import gmaps
    import gmaps.datasets # You also need to import this!
    
    gmaps.configure(api_key="AI")
    data = gmaps.datasets.load_dataset("taxi_rides")
    

    【讨论】:

      猜你喜欢
      • 2023-01-15
      • 2022-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-16
      • 1970-01-01
      相关资源
      最近更新 更多