I have double index in Panda's dataframe like the example below.
c d
a b
1 3 1.519970 -0.493662
2 4 0.600178 0.274230
3 5 0.132885 -0.023688
4 6 2.410179 1.450520
How do I plot column 'c' as y-axis and index 'b' as x-axis. With one index, it is easy to plot. But I have trouble with multi index plotting. Thank you for any help!!.
df.reset_index().plot(x="b",y="c")?df.reset_index(level=0, drop=True).c.plot()reset_indexis an issue, you will have much larger issues when actually plotting it; or in other words, do not plot any data that you cannot affort to reshape.