Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Created May 1, 2024 09:50
Show Gist options
  • Save berkorbay/014287c822c3a831f52d92b438642790 to your computer and use it in GitHub Desktop.
Save berkorbay/014287c822c3a831f52d92b438642790 to your computer and use it in GitHub Desktop.
eptr2 Python paketini R ile kullanmak
library(tidyverse)
library(reticulate)
if(FALSE){
print("Installing python packages")
reticulate::py_install("eptr2")
reticulate::py_install("pandas")
reticulate::py_install("urllib3")
}
eptr2 <- reticulate::import("eptr2")
eptr_obj <- eptr2$EPTR2()
res = eptr_obj$call("mcp-smp-imb", start_date="2024-04-10", end_date="2024-04-10",postprocess=FALSE)
df = bind_rows(res$items)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment