~/talk

Using Python & R in Harmony

Talkat PyOhio 2019 · 2019-07-27..07-28· [data-science, python]
links:none on file
slides:none on file

Shows live use of reticulate to run Python (requests, pandas) inside R and rpy2/py2r patterns to run R (forecast::auto.arima, ts, ggplot2) inside Python; demonstrates creating virtual Python environments, converting objects back and forth, and calling the weather.gov API for four stations (observed temperature variance ~20°F). Scrapes state population series with BeautifulSoup, forecasts 2020 with auto.arima, applies the Huntington‑Hill method to assign House seats, and predicts Ohio and California each lose one electoral vote.

AI-written summary · about

  1. 0:00Intro
  2. 3:11Event: PyOhio 2019 Talk: Using Python & R in Harmony Date: July 27th, 2019
  3. 4:30What is reticulate?
  4. 5:03A brief guide to using reticulate within R
  5. 6:21Spinning up a Python virtualenv within R
  6. 7:28Importing Python modules within R
  7. 7:38Leveraging Python module functions
  8. 8:18An example with a web API & SF Bay climates
  9. 9:28Calling the weather gov web API
  10. 10:59Gathering JSON responses with help from Python
  11. 12:24Wrangling & stacking observations
  12. 14:14A brief guide to using rpy2 within Python
  13. 14:48Installing and Importing rpy2
  14. 15:34Executing an R Script
  15. 17:32Estimating Electoral College Votes by State
  16. 17:58Scraping State Population Data
  17. 18:38Using R Functions, Generate Forecasts
  18. 19:49Assigning House Seats
~/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.