AI engineering glossary · NumPy pandas visualization
What is multiIndex?
MultiIndex (also called hierarchical index): An index with two or more levels, so each row is identified by a combination of labels such as country and city. It allows several dimensions of data to be stored in a two-dimensional table and is created by groupby on several keys or set_index with a list.
MultiIndex: an example
Sales indexed by (state, year) lets df.loc['Karnataka'] return all years for that state.
Related terms
More NumPy pandas visualization terms
Where you learn it
MultiIndex is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.