Seaborn 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
import seaborn as sns

df = pd.DataFrame(np.random.rand(5, 2), columns=["x", "y"])
sns.scatterplot(data=df, 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 Sept. 11, 2024, 8:31 p.m.