quan m. nguyen

Wrangling Multidimensional Pandas

May 28, 2020 at 5:18 PM

Pandas is a great tool but there are some caveats.

If you don't name your columns in a MultiIndex, you can't meaningfully reindex

The [] operator seems to reduce dimensionality of data, wheres many usse of .loc[] will preserve it.

In order to use a list of tuples to index a MultiIndex object, you need to use complete tuples.