How to get windspeed when temperature is maximum for each city?
First, you should find maximum temperature for each city, then merge it with the main data to find the relative windspeed

city_and_max_temp = data.groupby('city').agg('max')[['temperature']]
data.merge( right=city_and_max_temp ,how='inner')[['city','windspeed']]