Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Zeppelin how to pass R dataframe to a paragraph with python (dataframe)

Highlighted

Zeppelin how to pass R dataframe to a paragraph with python (dataframe)

New Contributor

I there,

I'm using zeppelin 0.7.0 in a hdp 2.4 and I'm using SparkR, python and Pyspark and i want to pass an R dataframe using context to pyspark or the reverse.

For example:

%r

ed <- sql(sqlContext, "select * from default.test limit 100")

dflocal <- SparkR::collect(ed)

# do someting to dataframe dflocal and then send to pyspark to use some visualization library

z.put("teste",X)

%pyspark
z.get("teste")
...

But with this type of code I receive error of data type for serialization.

Can someone help me.

Thanks

Don't have an account?
Coming from Hortonworks? Activate your account here