~/talk

Rewriting your R analysis code in Python

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

Rewriting is worth it when maintainability or integration demands outweigh fragile R idioms: code converts to Python using pandas and numpy but grouping can produce nested DataFrames where R returns one table, and tidyverse pipes and R’s nonstandard evaluation (quoting) have no direct equivalent. Interop options actually work: reticulate and rpy2 let code call across languages but can misconvert types or timezones, and packaging or C++ extensions use the usual helpers.

AI-written summary · about

  1. 0:00Intro
  2. 0:29About me
  3. 1:19When to rewrite your code
  4. 2:49When not to rewrite your code
  5. 4:04Strengths of R
  6. 5:31Strengths of python
  7. 6:33Differences - easy ones
  8. 7:51Why switch from R to python?
  9. 9:08Data analysis
  10. 10:22Pipes
  11. 14:28objects and classes
  12. 15:48Reference Class
  13. 18:53Python Class
  14. 20:32library vs import
  15. 21:42args, **kwargs
  16. 23:54Quoting/non-standard evaluation
  17. 27:07Quoting is used all the time
  18. 28:16Combine best of both worlds
  19. 31:19Thank you! Questions?
~/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.