groupby and pivot in pandas

Viewed 35

doing the following in pyspark

pivotDF = data.groupBy("var2","var3").pivot("VariableName").max("Value").orderBy("RecordTime")

How can I do the same in pandas so can benchmark both?

0 Answers
Related