Unpivot

Performs a UNPIVOT operation, rotating a table by transforming columns into rows

Parameters

Example

internet_sales = rasgo.get.dataset(74)

ds2 = internet_sales.unpivot(
    value_column="SALES_FEES",
    name_column="PRODUCT",
    column_list=["TAXAMT", "FREIGHT"]
    )

ds2.preview()

Source Code

Last updated