The Diagram

What it is

A DataFrame is basically a collection of columns (specifically pd.Series(s))

  • I like to picture each column as a string of beads.

The columns/strings are aligned side-by-side (the 1st bead of each string are all on the same level and so on…).

Each level of aligned beads/row can be accessed using a unique index.


Example

**Its Tabular/Pythonic Form

(index)TeamScore
0P_00Red5
1P_01Blue10
2P_02Red15

Its visual form

100%

Where did the column arrows/strings go

I removed them to reduce the clutter, and u should too when drawing a dataframe.

However, I like to remind myself that a dataframe is nothing but an indexed set of vertical series/columns/strings.


Connections