I'm wondering how efficiently reticulate
handles memory with python objects.
Suppose I have a 5GB pandas dataframe object called data_pandas
, in reticulate::python
and I'd like to make an analysis with R.
When I call the object from R like py$data_pandas
, does it make a copy of this dataframe into R data.frame object internally (i.e. make another 5GB data.frame in R)?
And vice versa (calling R data.frame from python)?