在 python 中以图表形式呈现城市

Bringing a city in form of a graph in python

我们有纽约市 google 地图,其中包含工作区、住宅区、商店、旅行路线的详细信息。有什么方法可以根据网络上的任何可用数据集或使用 google 地图在 python 中制作图表?

或者我们可以得到一些真正的城市空间数据集,可以被 python 读取。

https://opendata.cityofnewyork.us/data/

可以使用 xlsx 格式的公开可用数据集,详细说明上面 link 中城市的当前分区、事件、商店、注册等。

import pandas as pd

df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx', sheet_name='your Excel sheet name')

利用 Pandas 作为将数据导入 Python 的替代方法。