JRC of the European Commission#

Code reference#

European Commission Joint Research Centre (JRC) provider.

This module handles data from the JRC IDEES 2015 source.

“Handle” includes:

  • Fetch

  • Extract

  • Parse the native spreadsheet layout.

  • Convert to SDMX.

Submodules

transport_data.jrc.cli

CLI for jrc.

Module data

GEO

List of geographical areas for which data are provided.

UNIT_MEASURE

Mapping from (MODE, MEASURE) to UNIT_MEASURE attribute value, where these are not specified in the data.

transport_data.jrc.GEO = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'EU28', 'FI', 'FR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK', 'UK'][source]#

List of geographical areas for which data are provided. These are ISO 3166-1 alpha-2 codes, except for “EU28”.

transport_data.jrc.UNIT_MEASURE = {('AIR', 'Flights per year by airplance'): '1', ('AIR', 'New aircrafts'): 'vehicle', ('AIR', 'Number of flights'): '1', ('AIR', 'Number of seats available'): '1', ('AIR', 'Seats available per flight'): '1', ('AIR', 'Stock of aircrafts - in use'): 'vehicle', ('AIR', 'Stock of aircrafts - total'): 'vehicle', ('RAIL', 'Occupancy / utilisation'): 'percent', ('ROAD', 'Age structure in 2015'): 'vehicle', ('ROAD', 'New vehicle-registrations'): 'vehicle'}[source]#

Mapping from (MODE, MEASURE) to UNIT_MEASURE attribute value, where these are not specified in the data.

Functions

convert(geo)

expand(fname)

fetch(*geo[, dry_run])

get_agency()

Return information about the agency providing the data set.

iter_blocks(path, geo)

path_for([geo, member])

Return a filename and local cache path for the data file for geo.

prepare(measure_concept, dims)

read([geo])

Read data from a single file.

transport_data.jrc.convert(geo)[source]#
transport_data.jrc.expand(fname: str) str[source]#
transport_data.jrc.fetch(*geo, dry_run: bool = False)[source]#
transport_data.jrc.get_agency() Agency[source]#

Return information about the agency providing the data set.

See org.get_agencyscheme().

transport_data.jrc.iter_blocks(path: Path, geo: str)[source]#
transport_data.jrc.path_for(geo=None, member=None)[source]#

Return a filename and local cache path for the data file for geo.

transport_data.jrc.prepare(measure_concept, dims)[source]#
transport_data.jrc.read(geo=None)[source]#

Read data from a single file.

Notes on the format:

  • The hierarchy of some codes in column A is expressed by Excel formatting (indentation, with greater indentation indicating greater depth). This is not easily extracted with pandas.