innovate.fetch_oecd_dataset
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”def fetch_oecd_dataset( dataset_id: str, dimension_key: str, *, start_date: str = '1960', end_date: str = '2020',) -> pl.DataFrame: ...Download OECD SDMX observations and parse the response with Polars.
This operation performs a network request through the Rust client. The client uses a 30-second timeout, rejects redirects and limits the response to 16 MiB. Returned observations are not an immutable snapshot or an ingestion artifact.
Parameters
Section titled “Parameters”dataset_id: OECDagency,dataflow[,version]reference. Dimension order must match the selected dataflow.dimension_key: Ordered SDMX dimensions separated by dots; empty segments select all codes and plus signs combine codes within a dimension.start_date: SDMX start-period code; defaults to"1960".end_date: SDMX end-period code; defaults to"2020".
Returns
Section titled “Returns”Parsed observation table. TIME_PERIOD is kept as a string and
OBS_VALUE is parsed as Float64; other columns use Polars inference.
Raises
Section titled “Raises”NativeError: If request fields are invalid, the request fails or the upstream response violates the status, size or encoding requirements.polars.exceptions.PolarsError: If the response cannot be parsed as CSV.