I'm trying to spread the measure column. Have no idea why its not working.. Can anybody help please. Thanks.
here is the head() of the dataset:
year month measure day Temp
0 2014 12 Max.TemperatureF X1 64
1 2014 12 Mean.TemperatureF X1 52
2 2014 12 Min.TemperatureF X1 39
3 2014 12 Max.Dew.PointF X1 46
4 2014 12 MeanDew.PointF X1 40
The code:
df = df.pivot)table(index=['year','month','day'],columns='measure',values='Temp')
The Error:
DataError: No numeric types to aggregate