bach.DataFrame.stack
stack
(dropna=True)Stacks all data_columns into a single index series.
Parameters
dropna
(bool) – Whether to drop rows that contain missing values. If the caller has
at least an index series, this might generate different combinations between
the index and the stacked values.
Returns
a reshaped series that includes a new index (named “__stacked_index”) containing the caller’s column labels as values.
Return type
note
level
parameter is not supported since multilevel columns are not allowed.