Ejemplo
Explode multiple DataFrame columns simultaneously with matching element counts and fill empty iterables with NaN
sha256:b2f645a2f8dcdf7e90bd3e5aa07e236bb884289dbfe359e1a7f1b28ce3b40c3e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- python
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- python
- Lenguaje
- python
- Gestor de paquetes
- pip
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- python 3.12
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- python 3.12
- Lenguaje
- python
- Gestor de paquetes
- pip
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Caso
- Objetivo
- Explode multiple DataFrame columns simultaneously with matching element counts and fill empty iterables with NaN HOW
- Paquetes
-
pandas 2.3.3
- Entorno
- python
- Creado
- 2026-08-17T12:44:12Z
Contrato
- Exploding multiple list-like columns simultaneously with DataFrame.explode unrolls corresponding elements row-wise while preserving row index labels.
- Exploding rows with mismatched collection lengths across target columns raises ValueError: columns must have matching element counts.
- Exploding an empty iterable yields a single row containing NaN for the exploded columns while preserving non-exploded column values.
- Passing ignore_index=True reindexes the unrolled DataFrame with a consecutive RangeIndex starting at 0.
Archivos
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9