示例网络示例示例示例示例
我正在尝试一个由networkx
在这里a>。此示例使用文件名 geopandas 数据集cholera_cases.pkdg
。
# read in example data from a geopackage file. Geopackages
# are a format for storing geographic data that is backed
# by sqlite. geopandas reads data relying on the fiona package,
# providing a high-level pandas-style interface to geographic data.
cases = geopandas.read_file("cholera_cases.gpkg")
但是,该示例没有提及在何处以及如何获取此数据集。我上下梳理了Geopandas网站,无法找到此文件。我想查看其内容的格式并运行此示例。
如果有人知道从哪里获得这种geopandas
文件,请告知。
I am trying an example provided by networkx
here. This example uses a geopandas
dataset in a filename cholera_cases.pkdg
.
# read in example data from a geopackage file. Geopackages
# are a format for storing geographic data that is backed
# by sqlite. geopandas reads data relying on the fiona package,
# providing a high-level pandas-style interface to geographic data.
cases = geopandas.read_file("cholera_cases.gpkg")
The example, however, does not mention where and how to obtain this dataset. I combed GeoPandas website up and down and am unable to locate this file. I want to view the format of its content and run this example.
If anyone is aware of where to obtain this kind of geopandas
file, please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您去他们的github,可以在他们的回购中找到它。这里: https://github.com/networkx e示例/地理空间
可能值得克隆仓库来播放示例。
作为一般建议,在此类项目的网页上,我想始终检查到其github/gitlab/其他的链接,因为您可以在幕后看到该项目,并且可以保持当地克隆的最新状态
If you go to their GitHub, you can find it in their repo. Here: https://github.com/networkx/networkx/tree/main/examples/geospatial
Might be worth cloning the repo to play with the examples.
As general advice, on webpages for projects like these, I like to always check for links to their GitHub/GitLab/other because you get to see the project behind the scenes, and a local clone can be kept up to date