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
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:
from libpysal.examples import get_path
get_path("mexicojoin.dbf")
'/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.
import libpysal
dbf = libpysal.io.open(get_path("mexicojoin.dbf"))
dbf.header
['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']
The function available
is also available but has been updated to be more informative:
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... False 2 Atlanta Atlanta, GA region homicide counts and rates False 3 Baltimore Baltimore house sales prices and hedonics False 4 Bostonhsg Boston housing and neighborhood data False 5 Buenosaires Electoral Data for 1999 Argentinean Elections False 6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... False 7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... False 8 Chicago Health Chicago Health + Socio-Economics False 9 Chile Labor Labor Markets in Chile (1982-2002) False 10 Chile Migration Internal Migration in Chile (1977-2002) False 11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics False 12 Cleveland 2015 sales prices of homes in Cleveland, OH. False 13 Columbus Columbus neighborhood crime False 14 Denver Demographics and housing in Denver neighborho... False 15 Elections 2012 and 2016 Presidential Elections False 16 Grid100 Grid with simulated variables False 17 Groceries 2015 Chicago supermarkets False 18 Guerry Moral statistics of France (Guerry, 1833) False 19 Health Indicators Chicago Health Indicators (2005-11) False 20 Health+ 2000 Health, Income + Diversity False 21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... False 22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... False 23 Home Sales 2014-15 Home Sales in King County, WA False 24 Houston Houston, TX region homicide counts and rates False 25 Juvenile Cardiff juvenile delinquent residences False 26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... False 27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... False 28 Laozone Ozone measures at monitoring stations in Los ... False 29 LasRosas Corn yield, fertilizer and field data for pre... False 30 Line Line Shapefile True 31 Liquor Stores 2015 Chicago Liquor Stores False 32 Malaria Malaria incidence and population (1973, 95, 9... False 33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA False 34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... False 35 NCOVR US county homicides 1960-1990 False 36 NDVI Normalized Difference Vegetation Index grid False 37 NYC Demographic and housing data for New York Cit... False 38 NYC Earnings Block-level Earnings in NYC (2002-14) False 39 NYC Education NYC Education (2000) False 40 NYC Neighborhoods Demographics for New York City neighborhoods False 41 NYC Socio-Demographics NYC Education + Socio-Demographics False 42 Natregimes NCOVR with regimes (book/PySAL) False 43 Nepal Health, poverty and education indicators for ... False 44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 False 45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... False 46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... False 47 Oz9799 Monthly ozone data, 1997-99 False 48 Phoenix ACS Phoenix American Community Survey Data (2010,... False 49 Pittsburgh Pittsburgh homicide locations False 50 Point Point Shapefile True 51 Police Police expenditures Mississippi counties False 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... False 55 SIDS North Carolina county SIDS death counts False 56 SIDS2 North Carolina county SIDS death counts and r... False 57 Sacramento1 2000 Census Tract Data for Sacramento MSA False 58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... False 59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... False 60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... False 61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... False 62 Scotlip Male lip cancer in Scotland, 1975-80 False 63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... False 64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... False 65 South US Southern county homicides 1960-1990 False 66 StLouis St Louis region county homicide counts and rates False 67 Tampa1 2000 Census Tract Data for Tampa, FL MSA and ... False 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 False 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 False 84 nyc_bikes New York City Bike Trips False 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 False 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.
from libpysal.examples import explain
explain('Tampa1')
from libpysal.examples import load_example
tampa1 = load_example('Tampa1')
Downloading Tampa1 to /home/jovyan/pysal_data/Tampa1
available()
Name Description Installed 0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True 1 AirBnB Airbnb rentals, socioeconomics, and crime in C... False 2 Atlanta Atlanta, GA region homicide counts and rates False 3 Baltimore Baltimore house sales prices and hedonics False 4 Bostonhsg Boston housing and neighborhood data False 5 Buenosaires Electoral Data for 1999 Argentinean Elections False 6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... False 7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... False 8 Chicago Health Chicago Health + Socio-Economics False 9 Chile Labor Labor Markets in Chile (1982-2002) False 10 Chile Migration Internal Migration in Chile (1977-2002) False 11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics False 12 Cleveland 2015 sales prices of homes in Cleveland, OH. False 13 Columbus Columbus neighborhood crime False 14 Denver Demographics and housing in Denver neighborho... False 15 Elections 2012 and 2016 Presidential Elections False 16 Grid100 Grid with simulated variables False 17 Groceries 2015 Chicago supermarkets False 18 Guerry Moral statistics of France (Guerry, 1833) False 19 Health Indicators Chicago Health Indicators (2005-11) False 20 Health+ 2000 Health, Income + Diversity False 21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... False 22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... False 23 Home Sales 2014-15 Home Sales in King County, WA False 24 Houston Houston, TX region homicide counts and rates False 25 Juvenile Cardiff juvenile delinquent residences False 26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... False 27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... False 28 Laozone Ozone measures at monitoring stations in Los ... False 29 LasRosas Corn yield, fertilizer and field data for pre... False 30 Line Line Shapefile True 31 Liquor Stores 2015 Chicago Liquor Stores False 32 Malaria Malaria incidence and population (1973, 95, 9... False 33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA False 34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... False 35 NCOVR US county homicides 1960-1990 False 36 NDVI Normalized Difference Vegetation Index grid False 37 NYC Demographic and housing data for New York Cit... False 38 NYC Earnings Block-level Earnings in NYC (2002-14) False 39 NYC Education NYC Education (2000) False 40 NYC Neighborhoods Demographics for New York City neighborhoods False 41 NYC Socio-Demographics NYC Education + Socio-Demographics False 42 Natregimes NCOVR with regimes (book/PySAL) False 43 Nepal Health, poverty and education indicators for ... False 44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 False 45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... False 46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... False 47 Oz9799 Monthly ozone data, 1997-99 False 48 Phoenix ACS Phoenix American Community Survey Data (2010,... False 49 Pittsburgh Pittsburgh homicide locations False 50 Point Point Shapefile True 51 Police Police expenditures Mississippi counties False 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... False 55 SIDS North Carolina county SIDS death counts False 56 SIDS2 North Carolina county SIDS death counts and r... False 57 Sacramento1 2000 Census Tract Data for Sacramento MSA False 58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... False 59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... False 60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... False 61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... False 62 Scotlip Male lip cancer in Scotland, 1975-80 False 63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... False 64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... False 65 South US Southern county homicides 1960-1990 False 66 StLouis St Louis region county homicide counts and rates False 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 False 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 False 84 nyc_bikes New York City Bike Trips False 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 False 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
tampa1.installed
True
tampa1.get_file_list()
['/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']
tampa_counties_shp = tampa1.load('tampa_counties.shp')
tampa_counties_shp
<libpysal.io.iohandlers.pyShpIO.PurePyShpWrapper at 0x7f4a368ce7b8>
import geopandas
tampa_df = geopandas.read_file(tampa1.get_path('tampa_counties.shp'))
%matplotlib inline
tampa_df.plot()
<matplotlib.axes._subplots.AxesSubplot at 0x7f4a2eb25f60>
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.
rio = load_example('Rio Grande do Sul')
Downloading Rio Grande do Sul to /home/jovyan/pysal_data/Rio_Grande_do_Sul
available()
Name Description Installed 0 10740 Albuquerque, New Mexico, Census 2000 Tract Data True 1 AirBnB Airbnb rentals, socioeconomics, and crime in C... False 2 Atlanta Atlanta, GA region homicide counts and rates False 3 Baltimore Baltimore house sales prices and hedonics False 4 Bostonhsg Boston housing and neighborhood data False 5 Buenosaires Electoral Data for 1999 Argentinean Elections False 6 Charleston1 2000 Census Tract Data for Charleston, SC MSA... False 7 Charleston2 1998 and 2001 Zip Code Business Patterns (Cen... False 8 Chicago Health Chicago Health + Socio-Economics False 9 Chile Labor Labor Markets in Chile (1982-2002) False 10 Chile Migration Internal Migration in Chile (1977-2002) False 11 Cincinnati 2008 Cincinnati Crime + Socio-Demographics False 12 Cleveland 2015 sales prices of homes in Cleveland, OH. False 13 Columbus Columbus neighborhood crime False 14 Denver Demographics and housing in Denver neighborho... False 15 Elections 2012 and 2016 Presidential Elections False 16 Grid100 Grid with simulated variables False 17 Groceries 2015 Chicago supermarkets False 18 Guerry Moral statistics of France (Guerry, 1833) False 19 Health Indicators Chicago Health Indicators (2005-11) False 20 Health+ 2000 Health, Income + Diversity False 21 Hickory1 2000 Census Tract Data for Hickory, NC MSA an... False 22 Hickory2 1998 and 2001 Zip Code Business Patterns (Cen... False 23 Home Sales 2014-15 Home Sales in King County, WA False 24 Houston Houston, TX region homicide counts and rates False 25 Juvenile Cardiff juvenile delinquent residences False 26 Lansing1 2000 Census Tract Data for Lansing, MI MSA an... False 27 Lansing2 1998 and 2001 Zip Code Business Patterns (Cen... False 28 Laozone Ozone measures at monitoring stations in Los ... False 29 LasRosas Corn yield, fertilizer and field data for pre... False 30 Line Line Shapefile True 31 Liquor Stores 2015 Chicago Liquor Stores False 32 Malaria Malaria incidence and population (1973, 95, 9... False 33 Milwaukee1 2000 Census Tract Data for Milwaukee, WI MSA False 34 Milwaukee2 1998 and 2001 Zip Code Business Patterns (Cen... False 35 NCOVR US county homicides 1960-1990 False 36 NDVI Normalized Difference Vegetation Index grid False 37 NYC Demographic and housing data for New York Cit... False 38 NYC Earnings Block-level Earnings in NYC (2002-14) False 39 NYC Education NYC Education (2000) False 40 NYC Neighborhoods Demographics for New York City neighborhoods False 41 NYC Socio-Demographics NYC Education + Socio-Demographics False 42 Natregimes NCOVR with regimes (book/PySAL) False 43 Nepal Health, poverty and education indicators for ... False 44 Ohiolung Ohio lung cancer data, 1968, 1978, 1988 False 45 Orlando1 2000 Census Tract Data for Orlando, FL MSA an... False 46 Orlando2 1998 and 2001 Zip Code Business Patterns (Cen... False 47 Oz9799 Monthly ozone data, 1997-99 False 48 Phoenix ACS Phoenix American Community Survey Data (2010,... False 49 Pittsburgh Pittsburgh homicide locations False 50 Point Point Shapefile True 51 Police Police expenditures Mississippi counties False 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 False 56 SIDS2 North Carolina county SIDS death counts and r... False 57 Sacramento1 2000 Census Tract Data for Sacramento MSA False 58 Sacramento2 1998 and 2001 Zip Code Business Patterns (Cen... False 59 SanFran Crime July-Dec 2012 crime incidents in San Francisc... False 60 Savannah1 2000 Census Tract Data for Savannah, GA MSA a... False 61 Savannah2 1998 and 2001 Zip Code Business Patterns (Cen... False 62 Scotlip Male lip cancer in Scotland, 1975-80 False 63 Seattle1 2000 Census Tract Data for Seattle, WA MSA an... False 64 Seattle2 1998 and 2001 Zip Code Business Patterns (Cen... False 65 South US Southern county homicides 1960-1990 False 66 StLouis St Louis region county homicide counts and rates False 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 False 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 False 84 nyc_bikes New York City Bike Trips False 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 False 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
libpysal.examples.fetch_all()
AirBnB Downloading AirBnB to /home/jovyan/pysal_data/AirBnB Atlanta Downloading Atlanta to /home/jovyan/pysal_data/Atlanta Baltimore Downloading Baltimore to /home/jovyan/pysal_data/Baltimore Bostonhsg Downloading Bostonhsg to /home/jovyan/pysal_data/Bostonhsg Buenosaires Downloading Buenosaires to /home/jovyan/pysal_data/Buenosaires Charleston1 Downloading Charleston1 to /home/jovyan/pysal_data/Charleston1 Charleston2 Downloading Charleston2 to /home/jovyan/pysal_data/Charleston2 Chicago Health Downloading Chicago Health to /home/jovyan/pysal_data/Chicago_Health Chile Labor Downloading Chile Labor to /home/jovyan/pysal_data/Chile_Labor Chile Migration Downloading Chile Migration to /home/jovyan/pysal_data/Chile_Migration Cincinnati Downloading Cincinnati to /home/jovyan/pysal_data/Cincinnati Cleveland Downloading Cleveland to /home/jovyan/pysal_data/Cleveland Columbus Downloading Columbus to /home/jovyan/pysal_data/Columbus Denver Downloading Denver to /home/jovyan/pysal_data/Denver Elections Downloading Elections to /home/jovyan/pysal_data/Elections Grid100 Downloading Grid100 to /home/jovyan/pysal_data/Grid100 Groceries Downloading Groceries to /home/jovyan/pysal_data/Groceries Guerry Downloading Guerry to /home/jovyan/pysal_data/Guerry Health Indicators Downloading Health Indicators to /home/jovyan/pysal_data/Health_Indicators Health+ Downloading Health+ to /home/jovyan/pysal_data/Health+ Hickory1 Downloading Hickory1 to /home/jovyan/pysal_data/Hickory1 Hickory2 Downloading Hickory2 to /home/jovyan/pysal_data/Hickory2 Home Sales Downloading Home Sales to /home/jovyan/pysal_data/Home_Sales Houston Downloading Houston to /home/jovyan/pysal_data/Houston Juvenile Downloading Juvenile to /home/jovyan/pysal_data/Juvenile Lansing1 Downloading Lansing1 to /home/jovyan/pysal_data/Lansing1 Lansing2 Downloading Lansing2 to /home/jovyan/pysal_data/Lansing2 Laozone Downloading Laozone to /home/jovyan/pysal_data/Laozone LasRosas Downloading LasRosas to /home/jovyan/pysal_data/LasRosas Liquor Stores Downloading Liquor Stores to /home/jovyan/pysal_data/Liquor_Stores Malaria Downloading Malaria to /home/jovyan/pysal_data/Malaria Milwaukee1 Downloading Milwaukee1 to /home/jovyan/pysal_data/Milwaukee1 Milwaukee2 Downloading Milwaukee2 to /home/jovyan/pysal_data/Milwaukee2 NCOVR Downloading NCOVR to /home/jovyan/pysal_data/NCOVR NDVI Downloading NDVI to /home/jovyan/pysal_data/NDVI NYC Downloading NYC to /home/jovyan/pysal_data/NYC NYC Earnings Downloading NYC Earnings to /home/jovyan/pysal_data/NYC_Earnings NYC Education Downloading NYC Education to /home/jovyan/pysal_data/NYC_Education NYC Neighborhoods Downloading NYC Neighborhoods to /home/jovyan/pysal_data/NYC_Neighborhoods NYC Socio-Demographics Downloading NYC Socio-Demographics to /home/jovyan/pysal_data/NYC_Socio-Demographics Natregimes Downloading Natregimes to /home/jovyan/pysal_data/Natregimes Nepal Downloading Nepal to /home/jovyan/pysal_data/Nepal Ohiolung Downloading Ohiolung to /home/jovyan/pysal_data/Ohiolung Orlando1 Downloading Orlando1 to /home/jovyan/pysal_data/Orlando1 Orlando2 Downloading Orlando2 to /home/jovyan/pysal_data/Orlando2 Oz9799 Downloading Oz9799 to /home/jovyan/pysal_data/Oz9799 Phoenix ACS Downloading Phoenix ACS to /home/jovyan/pysal_data/Phoenix_ACS Pittsburgh Downloading Pittsburgh to /home/jovyan/pysal_data/Pittsburgh Police Downloading Police to /home/jovyan/pysal_data/Police Rio Grande do Sul Already downloaded SIDS Downloading SIDS to /home/jovyan/pysal_data/SIDS SIDS2 Downloading SIDS2 to /home/jovyan/pysal_data/SIDS2 Sacramento1 Downloading Sacramento1 to /home/jovyan/pysal_data/Sacramento1 Sacramento2 Downloading Sacramento2 to /home/jovyan/pysal_data/Sacramento2 SanFran Crime Downloading SanFran Crime to /home/jovyan/pysal_data/SanFran_Crime Savannah1 Downloading Savannah1 to /home/jovyan/pysal_data/Savannah1 Savannah2 Downloading Savannah2 to /home/jovyan/pysal_data/Savannah2 Scotlip Downloading Scotlip to /home/jovyan/pysal_data/Scotlip Seattle1 Downloading Seattle1 to /home/jovyan/pysal_data/Seattle1 Seattle2 Downloading Seattle2 to /home/jovyan/pysal_data/Seattle2 South Downloading South to /home/jovyan/pysal_data/South StLouis Downloading StLouis to /home/jovyan/pysal_data/StLouis Tampa1 Already downloaded clearwater Downloading clearwater to /home/jovyan/pysal_data/clearwater newHaven Downloading newHaven to /home/jovyan/pysal_data/newHaven nyc_bikes Downloading nyc_bikes to /home/jovyan/pysal_data/nyc_bikes taz Downloading taz to /home/jovyan/pysal_data/taz
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