Skip to main content

A Python wrapper for the Spanish National Statistics Institute (INE) API

Project description

inepandas

Un wrapper de Python para la API del Instituto Nacional de Estadística (INE) de España que devuelve datos como DataFrames de pandas.

⚠️ Este es un paquete no oficial, no está afiliado al INE.

English version below

Instalación

pip install inepandas

Uso rápido

import inepandas as ine

# Operaciones disponibles
operaciones = ine.get_operations()

# Datos de una tabla (últimos 5 periodos del IPC)
ipc = ine.get_table_data(50902, nlast=5)

# Datos de una serie
serie = ine.get_series_data("IPC251856", nlast=12)

# Datos por rango de fechas
datos_2024 = ine.get_table_data(50902, date_start="2024/01/01", date_end="2024/12/31")

Funciones principales

Función Descripción
get_operations() Lista de operaciones estadísticas
get_tables(operation) Tablas de una operación
get_table_data(table_id) Datos de una tabla
get_series_data(series_code) Datos de una serie
get_variables(operation) Variables de una operación
get_values(variable) Valores de una variable

IDs comunes

ID Descripción
50902 IPC - Índices nacionales
IPC251856 IPC - Variación anual

Enlaces

Proyectos relacionados

Licencia

MIT


English

A Python wrapper for the Spanish National Statistics Institute (INE) API that returns data as pandas DataFrames.

⚠️ This is an unofficial package, not affiliated with INE.

Installation

pip install inepandas

Quick start

import inepandas as ine

# Available operations
operations = ine.get_operations()

# Table data (last 5 periods of CPI)
cpi = ine.get_table_data(50902, nlast=5)

# Series data
series = ine.get_series_data("IPC251856", nlast=12)

# Date range
data_2024 = ine.get_table_data(50902, date_start="2024/01/01", date_end="2024/12/31")

Main functions

Function Description
get_operations() List statistical operations
get_tables(operation) Tables for an operation
get_table_data(table_id) Data from a table
get_series_data(series_code) Data from a series
get_variables(operation) Variables for an operation
get_values(variable) Values for a variable

Common IDs

ID Description
50902 CPI - National indices
IPC251856 CPI - Annual variation

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inepandas-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inepandas-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file inepandas-0.1.2.tar.gz.

File metadata

  • Download URL: inepandas-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inepandas-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fa4771740959106b04609b74e60fc4142e7dfcbea0b7c44031520e596b607994
MD5 739f57a54ff81aed65d06056cf3e764e
BLAKE2b-256 f5401d025102cec80476043261fb18d829a428421b7ee47eb89ee58e99d3ebed

See more details on using hashes here.

Provenance

The following attestation bundles were made for inepandas-0.1.2.tar.gz:

Publisher: publish.yml on JonathanMair/inepandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inepandas-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: inepandas-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for inepandas-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 780eef1ce90e85377854038a8935ebcf63cef0c970ed72818f9bb1640d76b35e
MD5 97fb808603139170eb3ebdf38f8d0e57
BLAKE2b-256 2d1ebda1107160ba9ecb01db096eb84b49a9990016cf97dfa3c71160212ed5f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for inepandas-0.1.2-py3-none-any.whl:

Publisher: publish.yml on JonathanMair/inepandas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page