pyopendata.io package

Submodules

pyopendata.io.jsdmx module

pyopendata.io.jsdmx.read_jsdmx(path_or_buf)

Convert a SDMX-JSON string to pandas object

filepath_or_buffer : a valid SDMX-JSON string or file-like
http://sdmx.org/wp-content/uploads/2014/07/sdmx-json-data-message.pdf

results : Series, DataFrame, or dictionaly of Series or DataFrame.

pyopendata.io.jstat module

pyopendata.io.jstat.read_jstat(path_or_buf, typ=u'frame', squeeze=True)

Convert a JSON-Stat string to pandas object

filepath_or_buffer : a valid JSON-Stat string or file-like
http://json-stat.org/
typ : {‘frame’, ‘series’}
Type of object to recover (series or frame), default ‘frame’
squeeze : bool, default True
If True, return DataFrame or Series when the input has only one dataset. When the input has multiple dataset, returns dictionary of results. If False, always return a dictionary.

results : Series, DataFrame, or dictionaly of Series or DataFrame.

pyopendata.io.sdmx module

class pyopendata.io.sdmx.SDMXCode

Bases: tuple

SDMXCode(codes, ts)

codes

Alias for field number 0

ts

Alias for field number 1

pyopendata.io.sdmx.read_sdmx(path_or_buf, dtype=u'float64', dsd=None)

Convert a SDMX-XML string to pandas object

filepath_or_buffer : a valid SDMX-XML string or file-like
https://webgate.ec.europa.eu/fpfis/mwikis/sdmx/index.php/Main_Page
dtype : str
dtype to coerce values
dsd : dict
parsed DSD dict corresponding to the SDMX-XML data

results : Series, DataFrame, or dictionaly of Series or DataFrame.

pyopendata.io.util module

Module contents