Beispiel
Explode multiple DataFrame columns simultaneously with matching element counts and fill empty iterables with NaN
sha256:b2f645a2f8dcdf7e90bd3e5aa07e236bb884289dbfe359e1a7f1b28ce3b40c3e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- python
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- python
- Sprache
- python
- Paketmanager
- pip
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- python 3.12
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- python 3.12
- Sprache
- python
- Paketmanager
- pip
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Fall
- Ziel
- Explode multiple DataFrame columns simultaneously with matching element counts and fill empty iterables with NaN HOW
- Pakete
-
pandas 2.3.3
- Umgebung
- python
- Erstellt
- 2026-08-17T12:44:12Z
Contract
- 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.
Dateien
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9