This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"codigo": "0111100000100", | |
"descripcion": "Trigo duro, para siembra (semillas)", | |
"impuesto": 13, | |
"estado": null, | |
"categorias": [ | |
"Productos de la agricultura, silvicultura y pesca", | |
"Productos de la agricultura, horticultura y jardinería comercial", | |
"Cereales", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pandas import read_excel | |
import json | |
URL = 'https://www.bccr.fi.cr/indicadores-economicos/cabys/Cabys_catalogo_historial_de_cambios.xlsx' | |
# Los nombres de las columnas Excel vs nombres cortos y eventualmente | |
# propiedades del json | |
cols = { | |
'Descripción (categoría 1)': 'c1', | |
'Descripción (categoría 2)': 'c2', |