What is a good way to aggregate dataframes in AWS Glue

Viewed 1710

I am trying to aggregate dataframes in AWS Glue. I have used the following pySpark code to perform the aggregation:

mydataframe.groupby('id').agg({'value', 'operation'})

Is there a better way to perform the aggregation in AWS Glue?

Thanks!

1 Answers

I convert it to Dataframe using pyspark and do the aggregation, then converting it back to Dynamicframe. However, it seems that you need to manually add partitions to the dataframes.

Related