Skip to content

pandasx / pivot

Function: pivot() ​

pivot(df, options): DataFrame

Defined in: src/levels.ts:192

Reshapes by unique index/column values without aggregation (duplicates throw).

Parameters ​

ParameterType
dfDataFrame
options{ columns: string | readonly string[]; index?: string | readonly string[]; values?: string | readonly string[]; }
options.columnsstring | readonly string[]
options.index?string | readonly string[]
options.values?string | readonly string[]

Returns ​

DataFrame

Released under the MIT License.