risktools.data package

Module contents

risktools.data.get_gis(url='https://www.eia.gov/maps/map_data/CrudeOil_Pipelines_US_EIA.zip')

Returns a SpatialPointsDataFrame from a shapefile URL. Examples with EIA and Government of Alberta

US Energy Information Agency:

Alberta Oil Sands, Petroleum and Natural Gas

urlstr

URL of the zipped shapefile

Returns geopandas object

>>> import risktools as rt
>>> df = rt.data.get_gis("https://www.eia.gov/maps/map_data/CrudeOil_Pipelines_US_EIA.zip")
risktools.data.get_names()

return valid names for the open_data() function.

List of strings

>>> import risktools as rt
>>> rt.get_names()
risktools.data.open_data(nm)

Function used to return built-in datasets from risktools. To get a list of valid datasets, use the get_names() function.

nmstr

Name of dataset to return

Varies by data requests

>>> import risktools as rt
>>> rt.open_data('cancrudeassays')