jinhaichen opened a new pull request, #419:
URL: https://github.com/apache/incubator-livy/pull/419

   ## What changes were proposed in this pull request?
   
   jvm import org.apache.spark.sql.api.python.*. Or else pandas dataframe to 
spark dataframe will fail.  
   
   ## How was this patch tested?
   
   ```python
   import pandas as pd
   from pyspark.sql import SparkSession
   
   pandas_df = pd.DataFrame({
       'A': [1, 2, 3],
       'B': ['a', 'b', 'c']
   })
   
   spark = SparkSession.builder.getOrCreate()
   spark_df = spark.createDataFrame(pandas_df)
   spark_df.show()
   ```
   
   this failed before, and now it's OK.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to