Task 05: Advanced Exploration¶
This is a suggested solution. It is meant to help you out if you struggle with a certain aspect of the exercise. Your own solution may differ widely and can still be perfectly valid.
Maximum Temperature Differences¶
To solve this task, we basically need a new data frame with the differences between each of our rows of data.
Pandas offers the
diff()-method for this exact purpose.
min()-methods, there is also the
idxmin()-method, that returns the index (in our case the date and hour) of the extreme values.