~/talk

How Dimensional is a `pandas.DataFrame`, anyway?

Talkat PyData Amsterdam 2024 · 2024-09-18..09-20· [data-visualization, python]
slides:none on file

Claim: a pandas.DataFrame is one-dimensional, an index-aligned collection of Series, not a true 2D array. Demonstrations show Series as strictly homogeneous columns, DataFrame = indexed collection of 1‑D Series, xarray pricing tables misrepresent sparse time series, and stack/unstack acts like turning one homogeneous dataset into many. Empirical failures include DF.describe() coercing dtypes and losing precision, groupby across columns forcing transposes and dtype churn, and a trading model rebuilt as a 1D multi‑index that actually works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Pandas is one-dimensional
  3. 3:31Homogeneity in Python data
  4. 10:10Python dictionaries dual nature
  5. 11:13Transition to NumPy and lists
  6. 13:58Fixed vs dynamic size arrays
  7. 15:22Dimensionality of nested lists
  8. 17:06Pandas coordinates: structural vs data
  9. 19:12Series and DataFrame as 1D
  10. 20:57Pandas API mistakes from dimensions
  11. 21:19Xarray 2D data coercion
  12. 22:42Pandas stack and unstack
  13. 24:07Trading data with 1D series
  14. 27:55Correct trading data modeling
  15. 28:36Summary
  16. 28:58Q&A: Group by axis deprecation
  17. 30:21Q&A: Relational data model
  18. 31:48Q&A: Pandas usability
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.