flasc.data_processing.time_operations.flatten_cols#
- flasc.data_processing.time_operations.flatten_cols(df)[source]#
Flatten multi-level columns in a DataFrame.
- Parameters:
df (pd.DataFrame | FlascDataFrame) -- Input DataFrame.
- Returns:
Flattened DataFrame.
- Return type:
pd.DataFrame | FlascDataFrame