Reputation: 849
I have a dict of Pandas Dataframes, say
d = {A: pd.DataFrame([[0, 1, 2], [2, 2, 4]),
B: pd.DataFrame([[1, 1, 1], [2, 2, 2]}
and I'd like to change it into a MultiIndex DataFrame like this:
A 0 0, 1, 2
1 2, 2, 4
B 0 1, 1, 1
1 2, 2, 2
Upvotes: 23
Views: 8653