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.
What I have in mind, but gives unhashable type error:
If you have better answer, please add a comment about this, thank you!