Question:
I start with:
and want to end up with:
where A and B are known after df creation, and C is the original
index of the df.
MWE:
What I have in mind, but gives unhashable type error:
Answer:
Tru with
pd.MultiIndex.from_product
If you have better answer, please add a comment about this, thank you!