pandas 2 and the Arrow revolution
summary
Pandas 2 replaces many NumPy-backed internals with Apache Arrow types and kernels, aiming for Apache Arrow kernels, real nullable integer dtype support, and much faster string handling; CSV and Parquet loaders can produce Arrow-backed columns for zero-copy CSV loading so large datasets move between libraries without copies. Migration is incremental (1.5 adds string/number support, 2.0 expands types), groupby/kernel gaps remain, but for multi-gigabyte workloads the change yields orders-of-magnitude speed and memory reductions.
AI-written summary · about
chapters (13)
- 0:00Introduction to data frames
- 2:15Memory representation in pandas
- 5:21Python lists vs NumPy arrays
- 7:34Apache Arrow revolution
- 9:10What's new in pandas 2
- 13:47Arrow integration timeline
- 16:00Deprecations and upgrades
- 17:15Performance improvements
- 18:32Future plans and Arrow adoption
- 20:18API diversity and stability
- 21:43IO and plotting improvements
- 22:32Out-of-core processing
- 24:25Query planning and optimization
