{ "cells": [ { "cell_type": "markdown", "id": "242ebc1d-2211-451d-ba0f-6508407f6b4f", "metadata": {}, "source": [ "# Preprocesamiento datos tramites.jsonl" ] }, { "cell_type": "code", "execution_count": 1, "id": "62051ebd-2571-418d-9d1a-b2d50b100e57", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idestadofechaActualizaciónnombreslugsigladescripcionmarcoLegalpalabrasClavelikedislikeesPresencialesVirtualentidadresultadoenlacescategoriaseventosVidaherramientasdocumentosmodalidadesubicaciones
01002PUBLICADO22/10/2025SOLICITUD DE COPIAS SIMPLESsolicitud-de-copias-simplesTCOPSe refiere a la solicitud de copias simples de...Resolución Nº RD 01-096-24 de 24/10/2024.None00FalseTrue{'nombre': 'Aduana Nacional', 'sigla': 'AN', '...Registro[][{'nombre': 'Empresas', 'slug': 'empresas'}][][][COPIA SIMPLE DE DOCUMENTO DE IMPORTACIÓN O EX...[{'tipo': 'VIRTUAL', 'url': 'https://jarembae....[]
11003PUBLICADO22/10/2025SOLICITUD DE LEGALIZACIONES Y/O AUTENTICACIONESsolicitud-de-legalizaciones-y-o-autenticacionesTLEGSe refiere a la solicitud de Legalización de d...Resolución Nº RD 01-096-24 de 24/10/2024None00FalseTrue{'nombre': 'Aduana Nacional', 'sigla': 'AN', '...Registro[][{'nombre': 'Empresas', 'slug': 'empresas'}][][][LEGALIZACIONES Y/O AUTENTICACIONES DE DOCUMEN...[{'tipo': 'VIRTUAL', 'url': 'https://jarembae....[]
21005PUBLICADO09/07/2025Registro de Ciudadanos Digitalesregistro-de-ciudadanos-digitalesNoneSe brinda la colaboración personalizada a la c...1. Ley N° 1173 - Ley de abreviación procesal p...None00TrueFalse{'nombre': 'Tribunal Supremo de Justicia', 'si...[][{'nombre': 'Justicia', 'slug': 'justicia'}][][][][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Tribunal Supremo de Justicia', 't...
31006PUBLICADO09/09/2025Registro en Ciudadanía Digitalregistro-en-ciudadania-digitalCDCiudadanía Digital es la identidad digital de ...Ley N° 1080 - Ciudadanía Digital[digital, ciudadania, registro, pre registro, ...00TrueTrue{'nombre': 'Agencia de Gobierno Electrónico y ...Registro[{'nombre': 'Ciudadania Digital', 'url': 'http...[{'nombre': 'Seguridad', 'slug': 'seguridad'},...[Empleo][][Registro][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'AGETIC', 'tipo': 'Oficina central...
41008PUBLICADO04/08/2025RESOLUCIÓN DE RECURSO DE ALZADAresolucion-de-recurso-de-alzadaNoneEs el recurso que tiene el contribuyente o suj...La Autoridad de Impugnación Tributaria (AIT), ...None00TrueFalse{'nombre': 'Autoridad de Impugnación Tributari...[{'nombre': 'Doctrina Tributaria', 'url': 'htt...[{'nombre': 'Justicia', 'slug': 'justicia'}, {...[][][][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Autoridad Regional de Impugnación...
.....................................................................
13642867PUBLICADO24/10/2025Actualización de Datos\\nConvalidación de estud...actualizacion-de-datos-convalidacion-de-estudi...NoneEl trámite consiste en presentar los certifica...R.A. DepartamentalNone00TrueFalse{'nombre': 'Direc. Dptal. de Educación Potosí'...Registro[][{'nombre': 'Educación', 'slug': 'educacion'}][Mi educación][][Resolución de convalidación y Diploma de Bach...[{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Subdirección de Educación Regular...
13652868PUBLICADO24/10/2025TOPOGRAFÍA Y GEODESIAtopografia-y-geodesiaTGEl Área de Geodesia y Topografía brinda servic...La Ley N° 535, en sus artículos 9, 10 y 71, es...None00TrueFalse{'nombre': 'Servicio Geológico Minero', 'sigla...[][{'nombre': 'Transporte', 'slug': 'transporte'}][][][][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't...
13662869PUBLICADO24/10/2025Actualización de Datos\\nSolicitud de Anteceden...actualizacion-de-datos-solicitud-de-antecedent...NoneEl trámite consiste en presentar una carta de ...R.A. DepartamentalNone00TrueFalse{'nombre': 'Direc. Dptal. de Educación Potosí'...Registro[][{'nombre': 'Educación', 'slug': 'educacion'}][Mi educación][][Certificado o informe de antecedentes adminis...[{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Subdirección de Educación Regular...
13672870PUBLICADO24/10/2025GEOFÍSICAgeofisicaAGLa geofísica aplicada es un área especializada...La ley N°535 de 28 de mayo de 2014 – Ley de Mi...None00TrueFalse{'nombre': 'Servicio Geológico Minero', 'sigla...[][{'nombre': 'Transporte', 'slug': 'transporte'}][][][][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't...
13682871PUBLICADO24/10/2025MEDIO AMBIENTEmedio-ambienteUMAEl Área de Medio Ambiente se encarga de la ela...El Área de Medio Ambiente se encarga de la ela...None00TrueFalse{'nombre': 'Servicio Geológico Minero', 'sigla...[][{'nombre': 'Medio ambiente', 'slug': 'medio-a...[][][][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't...
\n", "

1369 rows × 22 columns

\n", "
" ], "text/plain": [ " id estado fechaActualización \\\n", "0 1002 PUBLICADO 22/10/2025 \n", "1 1003 PUBLICADO 22/10/2025 \n", "2 1005 PUBLICADO 09/07/2025 \n", "3 1006 PUBLICADO 09/09/2025 \n", "4 1008 PUBLICADO 04/08/2025 \n", "... ... ... ... \n", "1364 2867 PUBLICADO 24/10/2025 \n", "1365 2868 PUBLICADO 24/10/2025 \n", "1366 2869 PUBLICADO 24/10/2025 \n", "1367 2870 PUBLICADO 24/10/2025 \n", "1368 2871 PUBLICADO 24/10/2025 \n", "\n", " nombre \\\n", "0 SOLICITUD DE COPIAS SIMPLES \n", "1 SOLICITUD DE LEGALIZACIONES Y/O AUTENTICACIONES \n", "2 Registro de Ciudadanos Digitales \n", "3 Registro en Ciudadanía Digital \n", "4 RESOLUCIÓN DE RECURSO DE ALZADA \n", "... ... \n", "1364 Actualización de Datos\\nConvalidación de estud... \n", "1365 TOPOGRAFÍA Y GEODESIA \n", "1366 Actualización de Datos\\nSolicitud de Anteceden... \n", "1367 GEOFÍSICA \n", "1368 MEDIO AMBIENTE \n", "\n", " slug sigla \\\n", "0 solicitud-de-copias-simples TCOP \n", "1 solicitud-de-legalizaciones-y-o-autenticaciones TLEG \n", "2 registro-de-ciudadanos-digitales None \n", "3 registro-en-ciudadania-digital CD \n", "4 resolucion-de-recurso-de-alzada None \n", "... ... ... \n", "1364 actualizacion-de-datos-convalidacion-de-estudi... None \n", "1365 topografia-y-geodesia TG \n", "1366 actualizacion-de-datos-solicitud-de-antecedent... None \n", "1367 geofisica AG \n", "1368 medio-ambiente UMA \n", "\n", " descripcion \\\n", "0 Se refiere a la solicitud de copias simples de... \n", "1 Se refiere a la solicitud de Legalización de d... \n", "2 Se brinda la colaboración personalizada a la c... \n", "3 Ciudadanía Digital es la identidad digital de ... \n", "4 Es el recurso que tiene el contribuyente o suj... \n", "... ... \n", "1364 El trámite consiste en presentar los certifica... \n", "1365 El Área de Geodesia y Topografía brinda servic... \n", "1366 El trámite consiste en presentar una carta de ... \n", "1367 La geofísica aplicada es un área especializada... \n", "1368 El Área de Medio Ambiente se encarga de la ela... \n", "\n", " marcoLegal \\\n", "0 Resolución Nº RD 01-096-24 de 24/10/2024. \n", "1 Resolución Nº RD 01-096-24 de 24/10/2024 \n", "2 1. Ley N° 1173 - Ley de abreviación procesal p... \n", "3 Ley N° 1080 - Ciudadanía Digital \n", "4 La Autoridad de Impugnación Tributaria (AIT), ... \n", "... ... \n", "1364 R.A. Departamental \n", "1365 La Ley N° 535, en sus artículos 9, 10 y 71, es... \n", "1366 R.A. Departamental \n", "1367 La ley N°535 de 28 de mayo de 2014 – Ley de Mi... \n", "1368 El Área de Medio Ambiente se encarga de la ela... \n", "\n", " palabrasClave like dislike \\\n", "0 None 0 0 \n", "1 None 0 0 \n", "2 None 0 0 \n", "3 [digital, ciudadania, registro, pre registro, ... 0 0 \n", "4 None 0 0 \n", "... ... ... ... \n", "1364 None 0 0 \n", "1365 None 0 0 \n", "1366 None 0 0 \n", "1367 None 0 0 \n", "1368 None 0 0 \n", "\n", " esPresencial esVirtual \\\n", "0 False True \n", "1 False True \n", "2 True False \n", "3 True True \n", "4 True False \n", "... ... ... \n", "1364 True False \n", "1365 True False \n", "1366 True False \n", "1367 True False \n", "1368 True False \n", "\n", " entidad resultado \\\n", "0 {'nombre': 'Aduana Nacional', 'sigla': 'AN', '... Registro \n", "1 {'nombre': 'Aduana Nacional', 'sigla': 'AN', '... Registro \n", "2 {'nombre': 'Tribunal Supremo de Justicia', 'si... \n", "3 {'nombre': 'Agencia de Gobierno Electrónico y ... Registro \n", "4 {'nombre': 'Autoridad de Impugnación Tributari... \n", "... ... ... \n", "1364 {'nombre': 'Direc. Dptal. de Educación Potosí'... Registro \n", "1365 {'nombre': 'Servicio Geológico Minero', 'sigla... \n", "1366 {'nombre': 'Direc. Dptal. de Educación Potosí'... Registro \n", "1367 {'nombre': 'Servicio Geológico Minero', 'sigla... \n", "1368 {'nombre': 'Servicio Geológico Minero', 'sigla... \n", "\n", " enlaces \\\n", "0 [] \n", "1 [] \n", "2 [] \n", "3 [{'nombre': 'Ciudadania Digital', 'url': 'http... \n", "4 [{'nombre': 'Doctrina Tributaria', 'url': 'htt... \n", "... ... \n", "1364 [] \n", "1365 [] \n", "1366 [] \n", "1367 [] \n", "1368 [] \n", "\n", " categorias eventosVida \\\n", "0 [{'nombre': 'Empresas', 'slug': 'empresas'}] [] \n", "1 [{'nombre': 'Empresas', 'slug': 'empresas'}] [] \n", "2 [{'nombre': 'Justicia', 'slug': 'justicia'}] [] \n", "3 [{'nombre': 'Seguridad', 'slug': 'seguridad'},... [Empleo] \n", "4 [{'nombre': 'Justicia', 'slug': 'justicia'}, {... [] \n", "... ... ... \n", "1364 [{'nombre': 'Educación', 'slug': 'educacion'}] [Mi educación] \n", "1365 [{'nombre': 'Transporte', 'slug': 'transporte'}] [] \n", "1366 [{'nombre': 'Educación', 'slug': 'educacion'}] [Mi educación] \n", "1367 [{'nombre': 'Transporte', 'slug': 'transporte'}] [] \n", "1368 [{'nombre': 'Medio ambiente', 'slug': 'medio-a... [] \n", "\n", " herramientas documentos \\\n", "0 [] [COPIA SIMPLE DE DOCUMENTO DE IMPORTACIÓN O EX... \n", "1 [] [LEGALIZACIONES Y/O AUTENTICACIONES DE DOCUMEN... \n", "2 [] [] \n", "3 [] [Registro] \n", "4 [] [] \n", "... ... ... \n", "1364 [] [Resolución de convalidación y Diploma de Bach... \n", "1365 [] [] \n", "1366 [] [Certificado o informe de antecedentes adminis... \n", "1367 [] [] \n", "1368 [] [] \n", "\n", " modalidades \\\n", "0 [{'tipo': 'VIRTUAL', 'url': 'https://jarembae.... \n", "1 [{'tipo': 'VIRTUAL', 'url': 'https://jarembae.... \n", "2 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "3 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "4 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "... ... \n", "1364 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1365 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1366 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1367 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1368 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "\n", " ubicaciones \n", "0 [] \n", "1 [] \n", "2 [{'nombre': 'Tribunal Supremo de Justicia', 't... \n", "3 [{'nombre': 'AGETIC', 'tipo': 'Oficina central... \n", "4 [{'nombre': 'Autoridad Regional de Impugnación... \n", "... ... \n", "1364 [{'nombre': 'Subdirección de Educación Regular... \n", "1365 [{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't... \n", "1366 [{'nombre': 'Subdirección de Educación Regular... \n", "1367 [{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't... \n", "1368 [{'nombre': 'OFICINA CENTRAL DE SERGEOMIN', 't... \n", "\n", "[1369 rows x 22 columns]" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import json\n", "import pandas as pd\n", "\n", "pd.set_option(\"display.max_columns\", None)\n", "pd.set_option(\"display.width\", None)\n", "\n", "# Obteniendo data frame pandas para explorar\n", "lines = []\n", "with open(r'../tramites.jsonl') as f:\n", " lines = f.read().splitlines()\n", "\n", "line_dicts = [json.loads(line) for line in lines]\n", "df = pd.DataFrame(line_dicts)\n", "\n", "df" ] }, { "cell_type": "code", "execution_count": null, "id": "febcb93a-ea52-4645-9e2c-25bc1cb80305", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 2, "id": "49eea40a-1fdb-48f1-b12d-6e27aff28725", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idestadofechaActualizaciónnombreslugsigladescripcionmarcoLegallikedislikeesPresencialesVirtualresultadoenlacesmodalidadesubicaciones
8582087PUBLICADO10/07/2025Apertura de Unidades Educativas Privadas de Co...apertura-de-unidades-educativas-privadas-de-co...SERApertura de Unidades Educativas Privadas de Co...Resolución Administrativa Departamental DDE-BE...00TrueFalseConstancia[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'DIRECCION DEPARTAMENTAL DEL BENI'...
11302425PUBLICADO04/08/2025CREACIÓN, MODIFICACIÓN O AMPLIACIÓN DE RUTAS Y...creacion-modificacion-o-ampliacion-de-rutas-y-...NoneSolicitudes de creación, modificación o amplia...Ley Nº 2341 de 23 de abril de 2002, de Procedi...00TrueFalseConstancia[{'nombre': 'GAMLP', 'url': 'https://lapaz.bo/...[{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Plataforma de Atención Ciudadana ...
4761560PUBLICADO10/07/2025DIPLOMA ACADEMICO - APOSTILLAdiploma-academico-apostillaNoneTrámite de apostilla dirigido a profesionales ...Verificación de Originalidad00TrueFalseRegistro y constancia[{'nombre': 'Archivos', 'url': 'https://www.ar...[{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Archivos', 'tipo': 'Oficina centr...
\n", "
" ], "text/plain": [ " id estado fechaActualización \\\n", "858 2087 PUBLICADO 10/07/2025 \n", "1130 2425 PUBLICADO 04/08/2025 \n", "476 1560 PUBLICADO 10/07/2025 \n", "\n", " nombre \\\n", "858 Apertura de Unidades Educativas Privadas de Co... \n", "1130 CREACIÓN, MODIFICACIÓN O AMPLIACIÓN DE RUTAS Y... \n", "476 DIPLOMA ACADEMICO - APOSTILLA \n", "\n", " slug sigla \\\n", "858 apertura-de-unidades-educativas-privadas-de-co... SER \n", "1130 creacion-modificacion-o-ampliacion-de-rutas-y-... None \n", "476 diploma-academico-apostilla None \n", "\n", " descripcion \\\n", "858 Apertura de Unidades Educativas Privadas de Co... \n", "1130 Solicitudes de creación, modificación o amplia... \n", "476 Trámite de apostilla dirigido a profesionales ... \n", "\n", " marcoLegal like dislike \\\n", "858 Resolución Administrativa Departamental DDE-BE... 0 0 \n", "1130 Ley Nº 2341 de 23 de abril de 2002, de Procedi... 0 0 \n", "476 Verificación de Originalidad 0 0 \n", "\n", " esPresencial esVirtual resultado \\\n", "858 True False Constancia \n", "1130 True False Constancia \n", "476 True False Registro y constancia \n", "\n", " enlaces \\\n", "858 [] \n", "1130 [{'nombre': 'GAMLP', 'url': 'https://lapaz.bo/... \n", "476 [{'nombre': 'Archivos', 'url': 'https://www.ar... \n", "\n", " modalidades \\\n", "858 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1130 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "476 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "\n", " ubicaciones \n", "858 [{'nombre': 'DIRECCION DEPARTAMENTAL DEL BENI'... \n", "1130 [{'nombre': 'Plataforma de Atención Ciudadana ... \n", "476 [{'nombre': 'Archivos', 'tipo': 'Oficina centr... " ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# columnas pendientes:\n", "pendientes = ['palabrasClave', 'entidad', 'categorias', 'eventosVida',\n", " 'herramientas', 'documentos',\n", " ]\n", "\n", "new_df = df[[col for col in df.columns if col not in pendientes]].copy()\n", "new_df.sample(3)" ] }, { "cell_type": "markdown", "id": "eb94399f-67fb-4b45-9080-10b34d631beb", "metadata": {}, "source": [ "## Desglosando columnas\n", "\n", "### entidad" ] }, { "cell_type": "code", "execution_count": 3, "id": "b89721ce-f7b0-4e7f-8cae-60019c50f438", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idestadofechaActualizaciónnombreslugsigladescripcionmarcoLegallikedislikeesPresencialesVirtualresultadoenlacesmodalidadesubicacionesentidad.nombreentidad.siglaentidad.slugentidad.logoentidad.descripcionentidad.urlSitioWebentidad.telefonoContactoentidad.correoElectronicoContacto
12112509PUBLICADO29/08/2025Certificado de Despacho Aduanerocertificado-de-despacho-aduaneroINSO-DACertificado de Despacho Aduanero es un proceso...Decreto Supremo N° 26119/01\\t Tuición y f...00TrueFalseRegistro y constancia[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'INSO-La Paz', 'tipo': 'Oficina ce...Instituto Nacional de Salud OcupacionalINSOinstituto-nacional-de-salud-ocupacionalhttps://www.gob.bo/ws/api/archivos/5933844f-a6...El Instituto Nacional de Salud Ocupacional con...https://www.inso.gob.bo/2245414 - 2244881inso@minsalud.gob.bo
1841217PUBLICADO10/07/2025Trámite 50 - Peticiones Escritastramite-50-peticiones-escritasTrámite 50Toda solicitud de información que presenten en...Constitución Política del Estado Plurinacional...00FalseTrueRegistro[{'nombre': 'Guía de Trámites', 'url': 'https:...[{'tipo': 'VIRTUAL', 'url': 'https://tramites....[{'nombre': 'Oficina Nacional', 'tipo': 'Ofici...Servicio Plurinacional de Registro de ComercioSEPRECservicio-plurinacional-de-registro-de-comerciohttps://www.gob.bo/ws/api/archivos/dec5dd8d-a6...El Servicio Plurinacional de Registro de Comer...https://www.seprec.gob.bo800102992None
5681657PUBLICADO11/07/2025Pago del Beneficio Fondo de Retiro Policial So...pago-del-beneficio-fondo-de-retiro-policial-so...FR-JUBEs el beneficio que brinda protección a los mi...a) Constitución Política del Estado Plurinacio...00TrueFalse[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'OFICINA CENTRAL LA PAZ', 'tipo': ...Mutual de Servicios al PolicíaMUSERPOLmutual-de-servicios-al-policiahttps://www.gob.bo/ws/api/archivos/1b0c8503-ed...La Mutual de Servicios al Policía – MUSERPOL s...https://www.muserpol.gob.bo(2)2441186info@muserpol.gob.bo
\n", "
" ], "text/plain": [ " id estado fechaActualización \\\n", "1211 2509 PUBLICADO 29/08/2025 \n", "184 1217 PUBLICADO 10/07/2025 \n", "568 1657 PUBLICADO 11/07/2025 \n", "\n", " nombre \\\n", "1211 Certificado de Despacho Aduanero \n", "184 Trámite 50 - Peticiones Escritas \n", "568 Pago del Beneficio Fondo de Retiro Policial So... \n", "\n", " slug sigla \\\n", "1211 certificado-de-despacho-aduanero INSO-DA \n", "184 tramite-50-peticiones-escritas Trámite 50 \n", "568 pago-del-beneficio-fondo-de-retiro-policial-so... FR-JUB \n", "\n", " descripcion \\\n", "1211 Certificado de Despacho Aduanero es un proceso... \n", "184 Toda solicitud de información que presenten en... \n", "568 Es el beneficio que brinda protección a los mi... \n", "\n", " marcoLegal like dislike \\\n", "1211 Decreto Supremo N° 26119/01\\t Tuición y f... 0 0 \n", "184 Constitución Política del Estado Plurinacional... 0 0 \n", "568 a) Constitución Política del Estado Plurinacio... 0 0 \n", "\n", " esPresencial esVirtual resultado \\\n", "1211 True False Registro y constancia \n", "184 False True Registro \n", "568 True False \n", "\n", " enlaces \\\n", "1211 [] \n", "184 [{'nombre': 'Guía de Trámites', 'url': 'https:... \n", "568 [] \n", "\n", " modalidades \\\n", "1211 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "184 [{'tipo': 'VIRTUAL', 'url': 'https://tramites.... \n", "568 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "\n", " ubicaciones \\\n", "1211 [{'nombre': 'INSO-La Paz', 'tipo': 'Oficina ce... \n", "184 [{'nombre': 'Oficina Nacional', 'tipo': 'Ofici... \n", "568 [{'nombre': 'OFICINA CENTRAL LA PAZ', 'tipo': ... \n", "\n", " entidad.nombre entidad.sigla \\\n", "1211 Instituto Nacional de Salud Ocupacional INSO \n", "184 Servicio Plurinacional de Registro de Comercio SEPREC \n", "568 Mutual de Servicios al Policía MUSERPOL \n", "\n", " entidad.slug \\\n", "1211 instituto-nacional-de-salud-ocupacional \n", "184 servicio-plurinacional-de-registro-de-comercio \n", "568 mutual-de-servicios-al-policia \n", "\n", " entidad.logo \\\n", "1211 https://www.gob.bo/ws/api/archivos/5933844f-a6... \n", "184 https://www.gob.bo/ws/api/archivos/dec5dd8d-a6... \n", "568 https://www.gob.bo/ws/api/archivos/1b0c8503-ed... \n", "\n", " entidad.descripcion \\\n", "1211 El Instituto Nacional de Salud Ocupacional con... \n", "184 El Servicio Plurinacional de Registro de Comer... \n", "568 La Mutual de Servicios al Policía – MUSERPOL s... \n", "\n", " entidad.urlSitioWeb entidad.telefonoContacto \\\n", "1211 https://www.inso.gob.bo/ 2245414 - 2244881 \n", "184 https://www.seprec.gob.bo 800102992 \n", "568 https://www.muserpol.gob.bo (2)2441186 \n", "\n", " entidad.correoElectronicoContacto \n", "1211 inso@minsalud.gob.bo \n", "184 None \n", "568 info@muserpol.gob.bo " ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# desglosando columnas de la entidad\n", "\n", "new_rows = {\n", " 'entidad.nombre': [],\n", " 'entidad.sigla': [],\n", " 'entidad.slug': [],\n", " 'entidad.logo': [],\n", " 'entidad.descripcion': [],\n", " 'entidad.urlSitioWeb': [],\n", " 'entidad.telefonoContacto': [],\n", " 'entidad.correoElectronicoContacto': [],\n", "}\n", "for i in range(0, df.shape[0]):\n", " entidad_json = df.iloc[i]['entidad']\n", " #entidad_json = json.loads(df.iloc[i]['entidad'])\n", " new_rows['entidad.nombre'].append(entidad_json['nombre'])\n", " new_rows['entidad.sigla'].append(entidad_json['sigla'])\n", " new_rows['entidad.slug'].append(entidad_json['slug'])\n", " new_rows['entidad.logo'].append(entidad_json['logo'])\n", " new_rows['entidad.descripcion'].append(entidad_json['descripcion'])\n", " new_rows['entidad.urlSitioWeb'].append(entidad_json['urlSitioWeb'])\n", " new_rows['entidad.telefonoContacto'].append(entidad_json['telefonoContacto'])\n", " new_rows['entidad.correoElectronicoContacto'].append(entidad_json['correoElectronicoContacto'])\n", "\n", "for k, v in new_rows.items():\n", " new_df[k] = pd.Series(v).values\n", "\n", "new_df.sample(3)" ] }, { "cell_type": "markdown", "id": "48f9eda7-5016-4f07-91fd-76cfc6ed1214", "metadata": {}, "source": [ "### esPresencial y esVirtual\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "3c9dfb8b-f6a7-4f75-82ab-5b7a973189d1", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1067 \n", "916 \n", "148 Global,Notas,Certificado,Legalización\n", "190 Certificación,Escolares,Libretas\n", "1054 inscripción vehículo,importación,casa comercial\n", "Name: palabrasClave, dtype: object" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows = []\n", "for i in range(0, df.shape[0]):\n", " palabras_clave = df.iloc[i]['palabrasClave']\n", " if isinstance(palabras_clave, list):\n", " rows.append(','.join(palabras_clave))\n", " else:\n", " rows.append('')\n", "\n", "new_df['palabrasClave'] = pd.Series(rows).values\n", "new_df.sample(5)['palabrasClave']" ] }, { "cell_type": "markdown", "id": "eafc4d9e-ac97-41fa-bf38-fb681128ca18", "metadata": {}, "source": [ "### categorias" ] }, { "cell_type": "code", "execution_count": 5, "id": "b492f2b3-6bb7-4412-81a5-e2a0543ec7a8", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "981 Educación,Salud,Vivienda,Empresas\n", "644 Educación\n", "956 Vivienda\n", "757 Justicia,Seguridad social\n", "751 Educación\n", "Name: categorias, dtype: object" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows = []\n", "for i in range(0, df.shape[0]):\n", " categorias = df.iloc[i]['categorias']\n", " categorias_list = [categoria['nombre'] for categoria in categorias]\n", " if len(categorias_list) > 0:\n", " rows.append(','.join(categorias_list))\n", " else:\n", " # TODO: ver como normalizar valores vacios, NULL o cadena vacia?\n", " rows.append('')\n", "new_df['categorias'] = rows\n", "new_df.sample(5)['categorias']" ] }, { "cell_type": "markdown", "id": "d8d7df89-dfa0-429c-ae5a-cbf578cfa2a1", "metadata": {}, "source": [ "### eventosVida" ] }, { "cell_type": "code", "execution_count": 6, "id": "2ec66e9d-4154-4a30-a8d5-4a6d52ba7709", "metadata": {}, "outputs": [], "source": [ "def separar_lista_por_caracter(df, col, separator=','):\n", " rows = []\n", " for i in range(0, df.shape[0]):\n", " words = df.iloc[i][col]\n", " if isinstance(words, list):\n", " rows.append(separator.join(words))\n", " else:\n", " rows.append('')\n", " return rows" ] }, { "cell_type": "code", "execution_count": 7, "id": "0f891bad-d8bd-4e7f-a82a-da559b223fae", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "91 \n", "429 Mi educación\n", "715 Mi educación\n", "851 Mi educación\n", "603 Jubilación\n", "Name: eventosVida, dtype: object" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows = separar_lista_por_caracter(df, 'eventosVida')\n", "new_df['eventosVida'] = pd.Series(rows).values\n", "new_df.sample(5)['eventosVida']" ] }, { "cell_type": "markdown", "id": "06217a9b-7bba-4c02-99be-b6f426276595", "metadata": {}, "source": [ "### documentos" ] }, { "cell_type": "code", "execution_count": 8, "id": "b3c23fd8-a417-471d-9a76-3b7323ecd096", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1312 \n", "486 Formulario de registro\n", "1126 Emisión de certificaciones\n", "679 Titulo y Resolución Administrativa\n", "279 Concentrado de Notas Histórico Académico Récor...\n", "Name: documentos, dtype: object" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows = separar_lista_por_caracter(df, 'documentos')\n", "new_df['documentos'] = pd.Series(rows).values\n", "new_df.sample(5)['documentos']" ] }, { "cell_type": "code", "execution_count": 9, "id": "ae3d172e-46b4-4bd7-9182-fd032b4c4df6", "metadata": {}, "outputs": [], "source": [ "new_df['enlaces'] = df['enlaces']" ] }, { "cell_type": "markdown", "id": "8720df45-89fd-42b5-8483-8d6dca7287e9", "metadata": {}, "source": [ "### herramientas" ] }, { "cell_type": "code", "execution_count": 10, "id": "20472e60-f3a0-4a09-aeba-6e4d9b27ec05", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1050 \n", "500 \n", "1089 \n", "1317 \n", "1203 \n", "Name: herramientas, dtype: object" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rows = separar_lista_por_caracter(df, 'herramientas')\n", "new_df['herramientas'] = pd.Series(rows).values\n", "new_df.sample(5)['herramientas']" ] }, { "cell_type": "code", "execution_count": 11, "id": "40b8b76e-be7b-4199-81af-4fbe6cb98f86", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "id object\n", "estado object\n", "fechaActualización object\n", "nombre object\n", "slug object\n", "sigla object\n", "descripcion object\n", "marcoLegal object\n", "like int64\n", "dislike int64\n", "esPresencial bool\n", "esVirtual bool\n", "resultado object\n", "enlaces object\n", "modalidades object\n", "ubicaciones object\n", "entidad.nombre object\n", "entidad.sigla object\n", "entidad.slug object\n", "entidad.logo object\n", "entidad.descripcion object\n", "entidad.urlSitioWeb object\n", "entidad.telefonoContacto object\n", "entidad.correoElectronicoContacto object\n", "palabrasClave object\n", "categorias object\n", "eventosVida object\n", "documentos object\n", "herramientas object\n", "dtype: object" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "new_df.dtypes" ] }, { "cell_type": "markdown", "id": "7a240370-0091-4fa1-96aa-36ee136624fa", "metadata": {}, "source": [ "### esPresencial" ] }, { "cell_type": "code", "execution_count": 12, "id": "30e194e4-58cf-449e-bdff-fd39e725f152", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idnombreesPresencialesVirtual
2751313Atención A Reclamos De Clientes10
7671973LEGALIZACION DE POLIZA DE INTERNACION10
4011450Título Profesional de Maestro(a)10
891114Legalización de Título Profesional - Técnico S...11
541062INSPECCIÓN DE CILINDROS DE HIERRO O ACERO SOME...10
\n", "
" ], "text/plain": [ " id nombre esPresencial \\\n", "275 1313 Atención A Reclamos De Clientes 1 \n", "767 1973 LEGALIZACION DE POLIZA DE INTERNACION 1 \n", "401 1450 Título Profesional de Maestro(a) 1 \n", "89 1114 Legalización de Título Profesional - Técnico S... 1 \n", "54 1062 INSPECCIÓN DE CILINDROS DE HIERRO O ACERO SOME... 1 \n", "\n", " esVirtual \n", "275 0 \n", "767 0 \n", "401 0 \n", "89 1 \n", "54 0 " ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "new_df['esPresencial'] = new_df['esPresencial'].apply(lambda value: 1 if value is True else 0)\n", "new_df['esVirtual'] = new_df['esVirtual'].apply(lambda value: 1 if value is True else 0)\n", "new_df.sample(5)[['id', 'nombre', 'esPresencial', 'esVirtual']]" ] }, { "cell_type": "markdown", "id": "8984fbe6-024b-44a2-b796-2ab3a976981b", "metadata": {}, "source": [ "## Guardado como csv" ] }, { "cell_type": "code", "execution_count": 13, "id": "947a2928-535c-4510-8dec-eeb36ebc87c0", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idestadofechaActualizaciónnombreslugsigladescripcionmarcoLegallikedislikeesPresencialesVirtualresultadoenlacesmodalidadesubicacionesentidad.nombreentidad.siglaentidad.slugentidad.logoentidad.descripcionentidad.urlSitioWebentidad.telefonoContactoentidad.correoElectronicoContactopalabrasClavecategoriaseventosVidadocumentosherramientas
4881572PUBLICADO13/07/2025Devolución de Aportes Derechohabientesdevolucion-de-aportes-derechohabientesNoneDerechohabientes de Funcionarios Policiales fa...Reglamento para la Devolución de Aportes VERSI...0010[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Consejo Nacional de Vivienda Poli...Consejo Nacional de Vivienda PolicialCOVIPOLconsejo-nacional-de-vivienda-policialhttps://www.gob.bo/ws/api/archivos/24ca848f-d1...El Consejo Nacional de Vivienda Policial (COVI...https://covipol.gob.bo73288511achavez@covipol.gob.boVivienda
471055PUBLICADO23/07/2025VERIFICACIÓN Y RESERVA DE DENOMINACIÓNverificacion-y-reserva-de-denominacionNoneRegular el procedimiento de solicitud, verific...Ley N°356 y Decreto Supremo N°19950001Registro y constancia[{'nombre': 'SITCOOP', 'url': 'https://coopera...[{'tipo': 'VIRTUAL', 'url': 'https://cooperati...[{'nombre': 'Central', 'tipo': 'Oficina centra...Autoridad de Fiscalización y Control de Cooper...AFCOOPautoridad-de-fiscalizacion-y-control-de-cooper...https://www.gob.bo/ws/api/archivos/2bf12663-3f...“Regular, Controlar, Fiscalizar y Supervisar e...https://www.afcoop.gob.bo/2 129205Nonereserva,denominacion,afcoop,nombre,cooperativaIdentificaciónVERIFICACIÓN Y RESERVA DE DENOMINACIÓN
5311617PUBLICADO30/07/2025REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE...requisitos-para-afiliacion-del-empleador-empre...NoneREQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE...REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE...0010Constancia[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'CNS REGIONAL LA PAZ', 'tipo': 'Re...Caja Nacional de SaludCNScaja-nacional-de-saludhttps://www.gob.bo/ws/api/archivos/8c891d9b-56...La Caja Nacional de Salud es una institución d...https://www.cns.gob.bo2112064NoneSaludCuidado de saludREQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE...
13572852PUBLICADO15/10/2025LLENADO Y LEGALIZADO DE CERTIFICADOS DE CALIFI...llenado-y-legalizado-de-certificados-de-califi...013Trámite que permite al estudiante que realizó ...Aprobación de la Actualización de la Guía de T...0010Constancia[][{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui...[{'nombre': 'Dirección Departamental de Educac...Direc. Dptal. de Educación La PazDDE-LPZdirec-dptal-de-educacion-la-pazhttps://www.gob.bo/ws/api/archivos/1a6cd44a-f5...La Educación en Bolivia, ha sufrido una serie ...https://www.ddelapaz.gob.bo65125555jronald.es.cruz@gmail.comEducaciónLLENADO Y LEGALIZADO DE CERTIFICADOS DE CALIFI...
\n", "
" ], "text/plain": [ " id estado fechaActualización \\\n", "488 1572 PUBLICADO 13/07/2025 \n", "47 1055 PUBLICADO 23/07/2025 \n", "531 1617 PUBLICADO 30/07/2025 \n", "1357 2852 PUBLICADO 15/10/2025 \n", "\n", " nombre \\\n", "488 Devolución de Aportes Derechohabientes \n", "47 VERIFICACIÓN Y RESERVA DE DENOMINACIÓN \n", "531 REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE... \n", "1357 LLENADO Y LEGALIZADO DE CERTIFICADOS DE CALIFI... \n", "\n", " slug sigla \\\n", "488 devolucion-de-aportes-derechohabientes None \n", "47 verificacion-y-reserva-de-denominacion None \n", "531 requisitos-para-afiliacion-del-empleador-empre... None \n", "1357 llenado-y-legalizado-de-certificados-de-califi... 013 \n", "\n", " descripcion \\\n", "488 Derechohabientes de Funcionarios Policiales fa... \n", "47 Regular el procedimiento de solicitud, verific... \n", "531 REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE... \n", "1357 Trámite que permite al estudiante que realizó ... \n", "\n", " marcoLegal like dislike \\\n", "488 Reglamento para la Devolución de Aportes VERSI... 0 0 \n", "47 Ley N°356 y Decreto Supremo N°1995 0 0 \n", "531 REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE... 0 0 \n", "1357 Aprobación de la Actualización de la Guía de T... 0 0 \n", "\n", " esPresencial esVirtual resultado \\\n", "488 1 0 \n", "47 0 1 Registro y constancia \n", "531 1 0 Constancia \n", "1357 1 0 Constancia \n", "\n", " enlaces \\\n", "488 [] \n", "47 [{'nombre': 'SITCOOP', 'url': 'https://coopera... \n", "531 [] \n", "1357 [] \n", "\n", " modalidades \\\n", "488 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "47 [{'tipo': 'VIRTUAL', 'url': 'https://cooperati... \n", "531 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "1357 [{'tipo': 'PRESENCIAL', 'url': None, 'urlSegui... \n", "\n", " ubicaciones \\\n", "488 [{'nombre': 'Consejo Nacional de Vivienda Poli... \n", "47 [{'nombre': 'Central', 'tipo': 'Oficina centra... \n", "531 [{'nombre': 'CNS REGIONAL LA PAZ', 'tipo': 'Re... \n", "1357 [{'nombre': 'Dirección Departamental de Educac... \n", "\n", " entidad.nombre entidad.sigla \\\n", "488 Consejo Nacional de Vivienda Policial COVIPOL \n", "47 Autoridad de Fiscalización y Control de Cooper... AFCOOP \n", "531 Caja Nacional de Salud CNS \n", "1357 Direc. Dptal. de Educación La Paz DDE-LPZ \n", "\n", " entidad.slug \\\n", "488 consejo-nacional-de-vivienda-policial \n", "47 autoridad-de-fiscalizacion-y-control-de-cooper... \n", "531 caja-nacional-de-salud \n", "1357 direc-dptal-de-educacion-la-paz \n", "\n", " entidad.logo \\\n", "488 https://www.gob.bo/ws/api/archivos/24ca848f-d1... \n", "47 https://www.gob.bo/ws/api/archivos/2bf12663-3f... \n", "531 https://www.gob.bo/ws/api/archivos/8c891d9b-56... \n", "1357 https://www.gob.bo/ws/api/archivos/1a6cd44a-f5... \n", "\n", " entidad.descripcion \\\n", "488 El Consejo Nacional de Vivienda Policial (COVI... \n", "47 “Regular, Controlar, Fiscalizar y Supervisar e... \n", "531 La Caja Nacional de Salud es una institución d... \n", "1357 La Educación en Bolivia, ha sufrido una serie ... \n", "\n", " entidad.urlSitioWeb entidad.telefonoContacto \\\n", "488 https://covipol.gob.bo 73288511 \n", "47 https://www.afcoop.gob.bo/ 2 129205 \n", "531 https://www.cns.gob.bo 2112064 \n", "1357 https://www.ddelapaz.gob.bo 65125555 \n", "\n", " entidad.correoElectronicoContacto \\\n", "488 achavez@covipol.gob.bo \n", "47 None \n", "531 None \n", "1357 jronald.es.cruz@gmail.com \n", "\n", " palabrasClave categorias \\\n", "488 Vivienda \n", "47 reserva,denominacion,afcoop,nombre,cooperativa Identificación \n", "531 Salud \n", "1357 Educación \n", "\n", " eventosVida documentos \\\n", "488 \n", "47 VERIFICACIÓN Y RESERVA DE DENOMINACIÓN \n", "531 Cuidado de salud REQUISITOS PARA AFILIACION DEL EMPLEADOR EMPRE... \n", "1357 LLENADO Y LEGALIZADO DE CERTIFICADOS DE CALIFI... \n", "\n", " herramientas \n", "488 \n", "47 \n", "531 \n", "1357 " ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "new_df.sample(4)" ] }, { "cell_type": "code", "execution_count": 14, "id": "2ad4c72a-ead5-47ac-8124-a6ab73189793", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(1369, 22)\n", "(1369, 29)\n" ] } ], "source": [ "print(df.shape)\n", "print(new_df.shape)" ] }, { "cell_type": "code", "execution_count": 15, "id": "f6e08f6b-0314-4b8f-9deb-a5d7db5b0c1d", "metadata": {}, "outputs": [], "source": [ "new_df.to_csv('../tramites.csv', index=False)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.5" } }, "nbformat": 4, "nbformat_minor": 5 }