set_channel_index_as

pylluminator.utils.set_channel_index_as(df: DataFrame, column: str, drop=True) DataFrame

Use an existing column specified by argument column as the new channel index. To keep the column, set drop to False

Parameters:
  • df (pandas.DataFrame) – input dataframe

  • column (str) – name of the column to use as the new channel index

  • drop – if set to False, keep the column used for the new index. Default: True

Returns:

the updated dataframe

Return type:

pandas.DataFrame