Task: Prepend a Level to a Pandas MultiIndex
Task: Prepend a Level to a Pandas MultiIndex: a task in Terminal-Lego-15k (Harbor dataset). You have a pandas DataFrame with a MultiIndex created after a groupby operation. Your task is to prepend a new level to the existing MultiIndex.
The task
You have a pandas DataFrame with a MultiIndex created after a groupby operation. Your task is to prepend a new level to the existing MultiIndex.
Part of PrimeIntellect/Terminal-Lego-15k.