Datasets for use with libpysal¶
As of version 4.2, libpysal has refactored the examples
package to:
reduce the size of the source installation
allow the use of remote datasets from the Center for Spatial Data Science at the Unversity of Chicago, and other remotes
This notebook highlights the new functionality
Backwards compatibility is maintained¶
If you were familiar with previous versions of libpysal, the newest version maintains backwards compatibility so any code that relied on the previous API should work.
For example:
[1]:
from libpysal.examples import get_path
[2]:
get_path("mexicojoin.dbf")
[2]:
'/home/jovyan/libpysal/examples/mexico/mexicojoin.dbf'
An important thing to note here is that the path to the file for this particular example is within the source distribution that was installed. Such an example data set is now referred to as a builtin
dataset.
[3]:
import libpysal
dbf = libpysal.io.open(get_path("mexicojoin.dbf"))
[4]:
dbf.header
[4]:
['POLY_ID',
'AREA',
'CODE',
'NAME',
'PERIMETER',
'ACRES',
'HECTARES',
'PCGDP1940',
'PCGDP1950',
'PCGDP1960',
'PCGDP1970',
'PCGDP1980',
'PCGDP1990',
'PCGDP2000',
'HANSON03',
'HANSON98',
'ESQUIVEL99',
'INEGI',
'INEGI2',
'MAXP',
'GR4000',
'GR5000',
'GR6000',
'GR7000',
'GR8000',
'GR9000',
'LPCGDP40',
'LPCGDP50',
'LPCGDP60',
'LPCGDP70',
'LPCGDP80',
'LPCGDP90',
'LPCGDP00',
'TEST']
available
is updated¶
The function available
is also available but has been updated to be more informative:
[5]:
from libpysal.examples import available
available()
Name Description Installed
0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True
1 AirBnB Airbnb rentals, socioeconomics, and crime in C... True
2 Atlanta Atlanta, GA region homicide counts and rates True
3 Baltimore Baltimore house sales prices and hedonics True
4 Bostonhsg Boston housing and neighborhood data True
5 Buenosaires Electoral Data for 1999 Argentinean Elections True
6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... True
7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... True
8 Chicago Health Chicago Health + Socio-Economics True
9 Chile Labor Labor Markets in Chile (1982-2002) True
10 Chile Migration Internal Migration in Chile (1977-2002) True
11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics True
12 Cleveland 2015 sales prices of homes in Cleveland, OH. True
13 Columbus Columbus neighborhood crime True
14 Denver Demographics and housing in Denver neighborho... True
15 Elections 2012 and 2016 Presidential Elections True
16 Grid100 Grid with simulated variables True
17 Groceries 2015 Chicago supermarkets True
18 Guerry Moral statistics of France (Guerry, 1833) True
19 Health Indicators Chicago Health Indicators (2005-11) True
20 Health+ 2000 Health, Income + Diversity True
21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... True
22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... True
23 Home Sales 2014-15 Home Sales in King County, WA True
24 Houston Houston, TX region homicide counts and rates True
25 Juvenile Cardiff juvenile delinquent residences True
26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... True
27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... True
28 Laozone Ozone measures at monitoring stations in Los ... True
29 LasRosas Corn yield, fertilizer and field data for pre... True
30 Line Line Shapefile True
31 Liquor Stores 2015 Chicago Liquor Stores True
32 Malaria Malaria incidence and population (1973, 95, 9... True
33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA True
34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... True
35 NCOVR US county homicides 1960-1990 True
36 NDVI Normalized Difference Vegetation Index grid True
37 NYC Demographic and housing data for New York Cit... True
38 NYC Earnings Block-level Earnings in NYC (2002-14) True
39 NYC Education NYC Education (2000) True
40 NYC Neighborhoods Demographics for New York City neighborhoods True
41 NYC Socio-Demographics NYC Education + Socio-Demographics True
42 Natregimes NCOVR with regimes (book/PySAL) True
43 Nepal Health, poverty and education indicators for ... True
44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 True
45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... True
46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... True
47 Oz9799 Monthly ozone data, 1997-99 True
48 Phoenix ACS Phoenix American Community Survey Data (2010,... True
49 Pittsburgh Pittsburgh homicide locations True
50 Point Point Shapefile True
51 Police Police expenditures Mississippi counties True
52 Polygon Polygon Shapefile True
53 Polygon_Holes Example to test treatment of holes True
54 Rio Grande do Sul Cities of the Brazilian State of Rio Grande do... True
55 SIDS North Carolina county SIDS death counts True
56 SIDS2 North Carolina county SIDS death counts and r... True
57 Sacramento1 2000 Census Tract Data for Sacramento MSA True
58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... True
59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... True
60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... True
61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... True
62 Scotlip Male lip cancer in Scotland, 1975-80 True
63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... True
64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... True
65 South US Southern county homicides 1960-1990 True
66 StLouis St Louis region county homicide counts and rates True
67 Tampa1 2000 Census Tract Data for Tampa, FL MSA and ... True
68 arcgis arcgis testing files True
69 baltim Baltimore house sales prices and hedonics 1978 True
70 berlin Prenzlauer Berg neighborhood AirBnB data from ... True
71 book Synthetic data to illustrate spatial weights True
72 burkitt Burkitt's lymphoma in the Western Nile distric... True
73 calemp Employment density for California counties True
74 chicago Chicago neighborhoods True
75 clearwater mgwr testing dataset True
76 columbus Columbus neighborhood crime data 1980 True
77 desmith Small dataset to illustrate Moran's I statistic True
78 geodanet Datasets from geodanet for network analysis True
79 georgia Various socio-economic variables for counties ... True
80 juvenile Residences of juvenile offenders in Cardiff, UK True
81 mexico Decennial per capita incomes of Mexican states... True
82 networks Datasets used for network testing True
83 newHaven Network testing dataset True
84 nyc_bikes New York City Bike Trips True
85 sids2 North Carolina county SIDS death counts and rates True
86 snow_maps Public water pumps and Cholera deaths in Londo... True
87 stl Homicides and selected socio-economic characte... True
88 street_net_pts Street network points True
89 taz Traffic Analysis Zones in So. California True
90 tokyo Tokyo Mortality data True
91 us_income Per-capita income for the lower 48 US states 1... True
92 virginia Virginia counties shapefile True
93 wmat Datasets used for spatial weights testing True
We see that the new column Installed
is added to the tablular output of available
. This tells the user whether the dataset has aready been installed on the local machine. All the builtin datasets are by defninition installed. The interesting cases are the remote data sets that are new in this release.
Remote datasets¶
The listing from available
above shows that the dataset Tampa1
is avalable, but has not yet been installed.
[6]:
from libpysal.examples import explain
explain('Tampa1')
[6]:
[7]:
from libpysal.examples import load_example
tampa1 = load_example('Tampa1')
[8]:
available()
Name Description Installed
0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True
1 AirBnB Airbnb rentals, socioeconomics, and crime in C... True
2 Atlanta Atlanta, GA region homicide counts and rates True
3 Baltimore Baltimore house sales prices and hedonics True
4 Bostonhsg Boston housing and neighborhood data True
5 Buenosaires Electoral Data for 1999 Argentinean Elections True
6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... True
7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... True
8 Chicago Health Chicago Health + Socio-Economics True
9 Chile Labor Labor Markets in Chile (1982-2002) True
10 Chile Migration Internal Migration in Chile (1977-2002) True
11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics True
12 Cleveland 2015 sales prices of homes in Cleveland, OH. True
13 Columbus Columbus neighborhood crime True
14 Denver Demographics and housing in Denver neighborho... True
15 Elections 2012 and 2016 Presidential Elections True
16 Grid100 Grid with simulated variables True
17 Groceries 2015 Chicago supermarkets True
18 Guerry Moral statistics of France (Guerry, 1833) True
19 Health Indicators Chicago Health Indicators (2005-11) True
20 Health+ 2000 Health, Income + Diversity True
21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... True
22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... True
23 Home Sales 2014-15 Home Sales in King County, WA True
24 Houston Houston, TX region homicide counts and rates True
25 Juvenile Cardiff juvenile delinquent residences True
26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... True
27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... True
28 Laozone Ozone measures at monitoring stations in Los ... True
29 LasRosas Corn yield, fertilizer and field data for pre... True
30 Line Line Shapefile True
31 Liquor Stores 2015 Chicago Liquor Stores True
32 Malaria Malaria incidence and population (1973, 95, 9... True
33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA True
34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... True
35 NCOVR US county homicides 1960-1990 True
36 NDVI Normalized Difference Vegetation Index grid True
37 NYC Demographic and housing data for New York Cit... True
38 NYC Earnings Block-level Earnings in NYC (2002-14) True
39 NYC Education NYC Education (2000) True
40 NYC Neighborhoods Demographics for New York City neighborhoods True
41 NYC Socio-Demographics NYC Education + Socio-Demographics True
42 Natregimes NCOVR with regimes (book/PySAL) True
43 Nepal Health, poverty and education indicators for ... True
44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 True
45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... True
46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... True
47 Oz9799 Monthly ozone data, 1997-99 True
48 Phoenix ACS Phoenix American Community Survey Data (2010,... True
49 Pittsburgh Pittsburgh homicide locations True
50 Point Point Shapefile True
51 Police Police expenditures Mississippi counties True
52 Polygon Polygon Shapefile True
53 Polygon_Holes Example to test treatment of holes True
54 Rio Grande do Sul Cities of the Brazilian State of Rio Grande do... True
55 SIDS North Carolina county SIDS death counts True
56 SIDS2 North Carolina county SIDS death counts and r... True
57 Sacramento1 2000 Census Tract Data for Sacramento MSA True
58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... True
59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... True
60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... True
61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... True
62 Scotlip Male lip cancer in Scotland, 1975-80 True
63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... True
64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... True
65 South US Southern county homicides 1960-1990 True
66 StLouis St Louis region county homicide counts and rates True
67 Tampa1 2000 Census Tract Data for Tampa, FL MSA and ... True
68 arcgis arcgis testing files True
69 baltim Baltimore house sales prices and hedonics 1978 True
70 berlin Prenzlauer Berg neighborhood AirBnB data from ... True
71 book Synthetic data to illustrate spatial weights True
72 burkitt Burkitt's lymphoma in the Western Nile distric... True
73 calemp Employment density for California counties True
74 chicago Chicago neighborhoods True
75 clearwater mgwr testing dataset True
76 columbus Columbus neighborhood crime data 1980 True
77 desmith Small dataset to illustrate Moran's I statistic True
78 geodanet Datasets from geodanet for network analysis True
79 georgia Various socio-economic variables for counties ... True
80 juvenile Residences of juvenile offenders in Cardiff, UK True
81 mexico Decennial per capita incomes of Mexican states... True
82 networks Datasets used for network testing True
83 newHaven Network testing dataset True
84 nyc_bikes New York City Bike Trips True
85 sids2 North Carolina county SIDS death counts and rates True
86 snow_maps Public water pumps and Cholera deaths in Londo... True
87 stl Homicides and selected socio-economic characte... True
88 street_net_pts Street network points True
89 taz Traffic Analysis Zones in So. California True
90 tokyo Tokyo Mortality data True
91 us_income Per-capita income for the lower 48 US states 1... True
92 virginia Virginia counties shapefile True
93 wmat Datasets used for spatial weights testing True
[9]:
tampa1.installed
[9]:
True
[10]:
tampa1.get_file_list()
[10]:
['/home/jovyan/pysal_data/Tampa1/__MACOSX/._TampaMSA',
'/home/jovyan/pysal_data/Tampa1/__MACOSX/TampaMSA/._tampa_counties.sbx',
'/home/jovyan/pysal_data/Tampa1/__MACOSX/TampaMSA/._tampa_final_census2.sbx',
'/home/jovyan/pysal_data/Tampa1/__MACOSX/TampaMSA/._2000 Census Data Variables_Documentation.pdf',
'/home/jovyan/pysal_data/Tampa1/__MACOSX/TampaMSA/._tampa_final_census2.sbn',
'/home/jovyan/pysal_data/Tampa1/__MACOSX/TampaMSA/._tampa_counties.sbn',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.geojson',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.gpkg',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.xlsx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.mid',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a0000000a.spx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByDestItemTypeID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000002.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.CatItemsByType.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000003.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/gdb',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000002.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByForwardLabel.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByBackwardLabel.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByOriginItemTypeID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.CatItemTypesByParentTypeID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000003.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000001.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a0000000a.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.spx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000009.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.FDO_UUID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.CatRelsByOriginID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000009.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000003.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.CatItemsByPhysicalName.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a0000000a.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.CatRelsByType.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByUUID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.CatItemTypesByUUID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000009.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a0000000a.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000009.spx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.FDO_UUID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.CatRelsByDestinationID.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000001.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000004.gdbtable',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/timestamps',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000007.CatRelTypesByName.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000006.gdbindexes',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000005.CatItemTypesByName.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000001.TablesByName.atx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/TampaMSA.gdb/a00000001.gdbtablx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.sbn',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.xlsx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/2000 Census Data Variables_Documentation.pdf',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.mid',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.dbf',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.gpkg',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.mif',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.kml',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.sqlite',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.dbf',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.prj',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.mif',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.shx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.geojson',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.shx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.sbn',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.sbx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.prj',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.shp',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.shp',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.sqlite',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_final_census2.sbx',
'/home/jovyan/pysal_data/Tampa1/TampaMSA/tampa_counties.kml']
[11]:
tampa_counties_shp = tampa1.load('tampa_counties.shp')
[12]:
tampa_counties_shp
[12]:
<libpysal.io.iohandlers.pyShpIO.PurePyShpWrapper at 0x7f2c886869b0>
[13]:
import geopandas
[14]:
tampa_df = geopandas.read_file(tampa1.get_path('tampa_counties.shp'))
[15]:
%matplotlib inline
tampa_df.plot()
[15]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f2c885f5e48>

Other Remotes¶
In addition to the remote datasets from the GeoData Data Science Center, there are several large remotes available at github repositories.
[16]:
explain('Rio Grande do Sul')
Rio_Grande_do_Sul
======================
Cities of the Brazilian State of Rio Grande do Sul
-------------------------------------------------------
* 43MUE250GC_SIR.dbf: attribute data (k=2)
* 43MUE250GC_SIR.shp: Polygon shapefile (n=499)
* 43MUE250GC_SIR.shx: spatial index
* 43MUE250GC_SIR.cpg: encoding file
* 43MUE250GC_SIR.prj: projection information
* map_RS_BR.dbf: attribute data (k=3)
* map_RS_BR.shp: Polygon shapefile (no lakes) (n=497)
* map_RS_BR.prj: projection information
* map_RS_BR.shx: spatial index
Source: Renan Xavier Cortes
Reference: https://github.com/pysal/pysal/issues/889#issuecomment-396693495
Note that the explain
function generates a textual description of this example dataset - no rendering of the map is done as the source repository does not include that functionality.
[17]:
rio = load_example('Rio Grande do Sul')
[18]:
available()
Name Description Installed
0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True
1 AirBnB Airbnb rentals, socioeconomics, and crime in C... True
2 Atlanta Atlanta, GA region homicide counts and rates True
3 Baltimore Baltimore house sales prices and hedonics True
4 Bostonhsg Boston housing and neighborhood data True
5 Buenosaires Electoral Data for 1999 Argentinean Elections True
6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... True
7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... True
8 Chicago Health Chicago Health + Socio-Economics True
9 Chile Labor Labor Markets in Chile (1982-2002) True
10 Chile Migration Internal Migration in Chile (1977-2002) True
11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics True
12 Cleveland 2015 sales prices of homes in Cleveland, OH. True
13 Columbus Columbus neighborhood crime True
14 Denver Demographics and housing in Denver neighborho... True
15 Elections 2012 and 2016 Presidential Elections True
16 Grid100 Grid with simulated variables True
17 Groceries 2015 Chicago supermarkets True
18 Guerry Moral statistics of France (Guerry, 1833) True
19 Health Indicators Chicago Health Indicators (2005-11) True
20 Health+ 2000 Health, Income + Diversity True
21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... True
22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... True
23 Home Sales 2014-15 Home Sales in King County, WA True
24 Houston Houston, TX region homicide counts and rates True
25 Juvenile Cardiff juvenile delinquent residences True
26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... True
27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... True
28 Laozone Ozone measures at monitoring stations in Los ... True
29 LasRosas Corn yield, fertilizer and field data for pre... True
30 Line Line Shapefile True
31 Liquor Stores 2015 Chicago Liquor Stores True
32 Malaria Malaria incidence and population (1973, 95, 9... True
33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA True
34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... True
35 NCOVR US county homicides 1960-1990 True
36 NDVI Normalized Difference Vegetation Index grid True
37 NYC Demographic and housing data for New York Cit... True
38 NYC Earnings Block-level Earnings in NYC (2002-14) True
39 NYC Education NYC Education (2000) True
40 NYC Neighborhoods Demographics for New York City neighborhoods True
41 NYC Socio-Demographics NYC Education + Socio-Demographics True
42 Natregimes NCOVR with regimes (book/PySAL) True
43 Nepal Health, poverty and education indicators for ... True
44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 True
45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... True
46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... True
47 Oz9799 Monthly ozone data, 1997-99 True
48 Phoenix ACS Phoenix American Community Survey Data (2010,... True
49 Pittsburgh Pittsburgh homicide locations True
50 Point Point Shapefile True
51 Police Police expenditures Mississippi counties True
52 Polygon Polygon Shapefile True
53 Polygon_Holes Example to test treatment of holes True
54 Rio Grande do Sul Cities of the Brazilian State of Rio Grande do... True
55 SIDS North Carolina county SIDS death counts True
56 SIDS2 North Carolina county SIDS death counts and r... True
57 Sacramento1 2000 Census Tract Data for Sacramento MSA True
58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... True
59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... True
60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... True
61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... True
62 Scotlip Male lip cancer in Scotland, 1975-80 True
63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... True
64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... True
65 South US Southern county homicides 1960-1990 True
66 StLouis St Louis region county homicide counts and rates True
67 Tampa1 2000 Census Tract Data for Tampa, FL MSA and ... True
68 arcgis arcgis testing files True
69 baltim Baltimore house sales prices and hedonics 1978 True
70 berlin Prenzlauer Berg neighborhood AirBnB data from ... True
71 book Synthetic data to illustrate spatial weights True
72 burkitt Burkitt's lymphoma in the Western Nile distric... True
73 calemp Employment density for California counties True
74 chicago Chicago neighborhoods True
75 clearwater mgwr testing dataset True
76 columbus Columbus neighborhood crime data 1980 True
77 desmith Small dataset to illustrate Moran's I statistic True
78 geodanet Datasets from geodanet for network analysis True
79 georgia Various socio-economic variables for counties ... True
80 juvenile Residences of juvenile offenders in Cardiff, UK True
81 mexico Decennial per capita incomes of Mexican states... True
82 networks Datasets used for network testing True
83 newHaven Network testing dataset True
84 nyc_bikes New York City Bike Trips True
85 sids2 North Carolina county SIDS death counts and rates True
86 snow_maps Public water pumps and Cholera deaths in Londo... True
87 stl Homicides and selected socio-economic characte... True
88 street_net_pts Street network points True
89 taz Traffic Analysis Zones in So. California True
90 tokyo Tokyo Mortality data True
91 us_income Per-capita income for the lower 48 US states 1... True
92 virginia Virginia counties shapefile True
93 wmat Datasets used for spatial weights testing True
Grabbing all the remotes¶
All the remote datasets can be downloaded with:
[19]:
libpysal.examples.fetch_all()
AirBnB
Already downloaded
Atlanta
Already downloaded
Baltimore
Already downloaded
Bostonhsg
Already downloaded
Buenosaires
Already downloaded
Charleston1
Already downloaded
Charleston2
Already downloaded
Chicago Health
Already downloaded
Chile Labor
Already downloaded
Chile Migration
Already downloaded
Cincinnati
Already downloaded
Cleveland
Already downloaded
Columbus
Already downloaded
Denver
Already downloaded
Elections
Already downloaded
Grid100
Already downloaded
Groceries
Already downloaded
Guerry
Already downloaded
Health Indicators
Already downloaded
Health+
Already downloaded
Hickory1
Already downloaded
Hickory2
Already downloaded
Home Sales
Already downloaded
Houston
Already downloaded
Juvenile
Already downloaded
Lansing1
Already downloaded
Lansing2
Already downloaded
Laozone
Already downloaded
LasRosas
Already downloaded
Liquor Stores
Already downloaded
Malaria
Already downloaded
Milwaukee1
Already downloaded
Milwaukee2
Already downloaded
NCOVR
Already downloaded
NDVI
Already downloaded
NYC
Already downloaded
NYC Earnings
Already downloaded
NYC Education
Already downloaded
NYC Neighborhoods
Already downloaded
NYC Socio-Demographics
Already downloaded
Natregimes
Already downloaded
Nepal
Already downloaded
Ohiolung
Already downloaded
Orlando1
Already downloaded
Orlando2
Already downloaded
Oz9799
Already downloaded
Phoenix ACS
Already downloaded
Pittsburgh
Already downloaded
Police
Already downloaded
Rio Grande do Sul
Already downloaded
SIDS
Already downloaded
SIDS2
Already downloaded
Sacramento1
Already downloaded
Sacramento2
Already downloaded
SanFran Crime
Already downloaded
Savannah1
Already downloaded
Savannah2
Already downloaded
Scotlip
Already downloaded
Seattle1
Already downloaded
Seattle2
Already downloaded
South
Already downloaded
StLouis
Already downloaded
Tampa1
Already downloaded
clearwater
Already downloaded
newHaven
Already downloaded
nyc_bikes
Already downloaded
taz
Already downloaded
[20]:
available()
Name Description Installed
0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True
1 AirBnB Airbnb rentals, socioeconomics, and crime in C... True
2 Atlanta Atlanta, GA region homicide counts and rates True
3 Baltimore Baltimore house sales prices and hedonics True
4 Bostonhsg Boston housing and neighborhood data True
5 Buenosaires Electoral Data for 1999 Argentinean Elections True
6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... True
7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... True
8 Chicago Health Chicago Health + Socio-Economics True
9 Chile Labor Labor Markets in Chile (1982-2002) True
10 Chile Migration Internal Migration in Chile (1977-2002) True
11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics True
12 Cleveland 2015 sales prices of homes in Cleveland, OH. True
13 Columbus Columbus neighborhood crime True
14 Denver Demographics and housing in Denver neighborho... True
15 Elections 2012 and 2016 Presidential Elections True
16 Grid100 Grid with simulated variables True
17 Groceries 2015 Chicago supermarkets True
18 Guerry Moral statistics of France (Guerry, 1833) True
19 Health Indicators Chicago Health Indicators (2005-11) True
20 Health+ 2000 Health, Income + Diversity True
21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... True
22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... True
23 Home Sales 2014-15 Home Sales in King County, WA True
24 Houston Houston, TX region homicide counts and rates True
25 Juvenile Cardiff juvenile delinquent residences True
26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... True
27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... True
28 Laozone Ozone measures at monitoring stations in Los ... True
29 LasRosas Corn yield, fertilizer and field data for pre... True
30 Line Line Shapefile True
31 Liquor Stores 2015 Chicago Liquor Stores True
32 Malaria Malaria incidence and population (1973, 95, 9... True
33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA True
34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... True
35 NCOVR US county homicides 1960-1990 True
36 NDVI Normalized Difference Vegetation Index grid True
37 NYC Demographic and housing data for New York Cit... True
38 NYC Earnings Block-level Earnings in NYC (2002-14) True
39 NYC Education NYC Education (2000) True
40 NYC Neighborhoods Demographics for New York City neighborhoods True
41 NYC Socio-Demographics NYC Education + Socio-Demographics True
42 Natregimes NCOVR with regimes (book/PySAL) True
43 Nepal Health, poverty and education indicators for ... True
44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 True
45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... True
46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... True
47 Oz9799 Monthly ozone data, 1997-99 True
48 Phoenix ACS Phoenix American Community Survey Data (2010,... True
49 Pittsburgh Pittsburgh homicide locations True
50 Point Point Shapefile True
51 Police Police expenditures Mississippi counties True
52 Polygon Polygon Shapefile True
53 Polygon_Holes Example to test treatment of holes True
54 Rio Grande do Sul Cities of the Brazilian State of Rio Grande do... True
55 SIDS North Carolina county SIDS death counts True
56 SIDS2 North Carolina county SIDS death counts and r... True
57 Sacramento1 2000 Census Tract Data for Sacramento MSA True
58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... True
59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... True
60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... True
61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... True
62 Scotlip Male lip cancer in Scotland, 1975-80 True
63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... True
64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... True
65 South US Southern county homicides 1960-1990 True
66 StLouis St Louis region county homicide counts and rates True
67 Tampa1 2000 Census Tract Data for Tampa, FL MSA and ... True
68 arcgis arcgis testing files True
69 baltim Baltimore house sales prices and hedonics 1978 True
70 berlin Prenzlauer Berg neighborhood AirBnB data from ... True
71 book Synthetic data to illustrate spatial weights True
72 burkitt Burkitt's lymphoma in the Western Nile distric... True
73 calemp Employment density for California counties True
74 chicago Chicago neighborhoods True
75 clearwater mgwr testing dataset True
76 columbus Columbus neighborhood crime data 1980 True
77 desmith Small dataset to illustrate Moran's I statistic True
78 geodanet Datasets from geodanet for network analysis True
79 georgia Various socio-economic variables for counties ... True
80 juvenile Residences of juvenile offenders in Cardiff, UK True
81 mexico Decennial per capita incomes of Mexican states... True
82 networks Datasets used for network testing True
83 newHaven Network testing dataset True
84 nyc_bikes New York City Bike Trips True
85 sids2 North Carolina county SIDS death counts and rates True
86 snow_maps Public water pumps and Cholera deaths in Londo... True
87 stl Homicides and selected socio-economic characte... True
88 street_net_pts Street network points True
89 taz Traffic Analysis Zones in So. California True
90 tokyo Tokyo Mortality data True
91 us_income Per-capita income for the lower 48 US states 1... True
92 virginia Virginia counties shapefile True
93 wmat Datasets used for spatial weights testing True