Pandas Example

library(reticulate)
python <- "~/.virtualenvs/python-3.7.7-venv/bin/python"
if (file.exists(python))
  use_python(python, required = TRUE)
import numpy as np
import pandas as pd

df = pd.DataFrame(np.random.rand(5, 2), columns=["x", "y"])

df.plot.scatter(x="x", y="y")
df.plot.scatter(x="x", y="y")


Try the reticulate package in your browser

Any scripts or data that you put into this service are public.

reticulate documentation built on May 3, 2021, 9:07 a.m.