I have Pyspark Dataframe named df as below,
I need to pivot the data based on ProducingMonth and classification column and need to produce the following output
I am using the following pyspark code
pivotDF = df.groupBy("WELL_ID","CLASSIFICATION").pivot("CLASSIFICATION")
while I am displaying the data I am getting error "'GroupedData' object has no attribute 'display'"