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) | Team | Score | |
|---|---|---|---|
| 0 | P_00 | Red | 5 |
| 1 | P_01 | Blue | 10 |
| 2 | P_02 | Red | 15 |
Its visual form
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.