I have a Dataframe in %python environment, and try to use that in %r environment.
How can I convert a spark dataframe under %python to %r ?
It is not even worth trying. The idiomatic way is to register temporary view and let metastore do the rest. In Python:
df.createOrReplaceTempView("some_name")
in R:
sql("REFRESH TABLE some_name")
df <- sql("SELECT * FROM some_name")
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With