I have a Pandas DataFrame where the index looks similar to this:
"test1 2011"
"test2 2011"
"test3 2011"
"test1 2012"
"test2 2012"
"test3 2012"
...
Is there an easy way to make this into a MultiIndex?
Example of desirable output:
columns_of_data
"2011" "test1" N/A
"test2" N/A
"test3" N/A
"2012" "test1" N/A
"test2" N/A
"test3" N/A