pandasx / stack
Function: stack()
Defined in: src/levels.ts:55
Moves column level(s) into the innermost row index level. Flat columns give a Series; MultiIndex columns give a frame with the remaining column levels. Like pandas 3, missing combinations are kept as NA unless dropna.
Parameters
| Parameter | Type |
|---|---|
df | DataFrame |
options | { dropna?: boolean; level?: Level; } |
options.dropna? | boolean |
options.level? | Level |