using
pd_now.set_index("a")
We could make column "a" adding to the index of the "row index", making "row index" a multiindex object
However, I did not find any way to add a row "b" to the "column index", making "column index" a multiindex object. Did I miss anything? Thank you.
df.set_index(['a','b'])?