访问数据存储库
可视化 Wolfram 数据存储库中资源对象的内容.
获取现有有关纽约市资源的列表.
In[1]:=
nycResources = ResourceSearch["NYC"]
Out[1]=
提取名为 "NYC Motor Vehicle Collisions" 对象中的数据.
In[2]:=
dataset =
ResourceData[
First[Select[
nycResources, #["Name"] == "NYC Motor Vehicle Collisions" &]]];
将数据限制在曼哈顿.
In[3]:=
manhattanCollions = Select[dataset,
#Borough ==
Entity["AdministrativeDivision", {"NewYorkCounty", "NewYork",
"UnitedStates"}] &];
用地理直方图表示那个数据子集.
In[4]:=
GeoHistogram[Normal[manhattanCollions[All, "Coordinates"]],
GeoRange -> Quantity[7, "Miles"]]
Out[4]=