Skip to content

pandasx / unstack

Function: unstack() ​

unstack(target, options?): DataFrame | Series

Defined in: src/levels.ts:95

Moves row index level(s) into the innermost column level(s); new rows and columns are sorted like pandas. Missing cells become NA (or fillValue).

Parameters ​

ParameterType
targetDataFrame | Series
options{ fillValue?: unknown; level?: Level | readonly Level[]; }
options.fillValue?unknown
options.level?Level | readonly Level[]

Returns ​

DataFrame | Series

Released under the MIT License.