What are the errors?

Date: Sun, 9 Aug 2015 20:06:13 +0000
From: djilokui...@yahoo.fr
To: m...@apache.org
CC: users@zeppelin.incubator.apache.org
Subject: Convert Spark dataframe to pandas dataframe in Zeppelin

Hi
How to Convert Spark dataframe to pandas dataframe in Zeppelin .

I tried Mydataframe.toPandas() like said here but it doesn't work
# Convert Spark DataFrame to Pandas
pandas_df = young.toPandas()

# Create a Spark DataFrame from Pandas
spark_df = context.createDataFrame(pandas_df)                                   
                                 

I also tried this:
`z.put("ts", trainSet)`.
`%pyspark trainSet = z.get("ts")` 
but I have a dataframe which do not have the column names and I cannot 
manipulate it with pandas
Do you have an Idea please ?
Regards,                                          

Reply via email to