That's using the multi-indexing phenomenon (object) the pandas dataframes provide.
Above, I'm showing vectors in two notations, side by side, with a link to their colorful depictions, in terms of ball packings, at this still improving Jupyter Notebook: