~/talk

On Blocks, Copies and Views: updating pandas' internals

Talkat PyCon DE & PyData Berlin 2022 · 2022-04-11..04-13· [python, web-performance]
slides:none on file

Proposal: any DataFrame or Series derived from another single rule: derived objects behave as copies, so mutating a child never changes the parent. Implementation uses delayed copy-on-write to avoid needless memory churn, with compatibility tooling (warnings, possible transition mode) and a proof-of-concept: an initial prototype implementation exists but requires testing. Benefits: predictable semantics, removal of SettingWithCopyWarning, fewer eager copies. Downsides: breaking behavior for some chained assignments and engineering complexity.

AI-written summary · about

  1. 0:00Start
  2. 2:11Copy vs view
  3. 3:25Examples: Filtering rows with a boolean mask
  4. 5:00Examples: subsetting columns
  5. 5:11Examples: selecting a single column
  6. 5:22Current situation
  7. 6:28The Setting with CopyWarning
  8. 9:50Intermezzo: copies and method chaining
  9. 12:29Can we do better?
  10. 14:22Examples: slicing rows
  11. 17:33Hiding copy/view details with Copy-on-Write
  12. 20:19Avoiding copies in method chaining
~/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.