how to convert spark datframe to pandas dataframe in AWS Glue

246 Views Asked by At

I read in data from Snowflake into AWS Glue using spark, which results having a spark dataframe called df. After that I added the following to convert it to a pandas dataframe:

df2 = df.toPandas()

However, this is causing an error in AWS Glue.

0

There are 0 best solutions below