~/talk

Building NumPy Arrays from CSV Files, Faster than Pandas

Talkat PyCon US 2023 · 2023-04-19..04-27· [python, data-visualization]
links:none on file
slides:none on file

Claims a C extension delimited_to_arrays() that reuses Python’s csv.reader tokenizer, collects Unicode code point lines per column, then converts directly to C types and writes into NumPy arrays with minimal PyObject work. Supports all NumPy dtypes, optional per-column type discovery, and benchmarks on 10M rows showing performance often better than pandas read_csv (order‑of‑magnitude faster on wide tables, slightly slower for uniform float columns). StaticFrame integrates it for DataFrame construction.

AI-written summary · about

  1. 0:00Start
  2. 2:09csv.reader(): Configurable Dialect Configuration
  3. 2:22csv.reader(): Not Implemented
  4. 2:51Pandas: read_csv()
  5. 5:12Diagrams & Flowcharts
  6. 6:32Challenges of Building Column Arrays from CSV
  7. 7:56Avoiding PyObjects
  8. 10:31Interface of delimited_to_arrays()
  9. 12:14Usage in StaticFrame
  10. 13:29C Structs: DelimitedReader
  11. 14:08C Structs: CodePointLine (CPL)
  12. 19:24Benchmarks
  13. 20:22Nine DataFrame Fixtures
  14. 22:37Performance Observations
  15. 24:14Parallelization
  16. 24:55Parallelized CSV Loading
~/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.