transform_raw_to_clean
- transform_raw_to_clean(df: pandas.DataFrame) pandas.DataFrame[source]
Transforms raw Bpod trial data into a clean, wide-format DataFrame.
Processes MSG, START, and END columns to create specific start/end columns for each message type.
- Parameters:
df (pd.DataFrame) – Raw input DataFrame.
- Returns:
Cleaned and pivoted DataFrame.
- Return type:
pd.DataFrame