How to get windspeed when temperature is maximum for each city? Here is the sample dataset, I have Weather_Data, 
I want to calculate 
"What is the windspeed when temperature is maximum for each city"
I have tried following code:

df = pd.read_csv('weather_by_cities.csv')
g = df.groupby('city')
g.max()


But Instead of getting corresponding Wind Speed, when temperature is maximum, it's giving maximum wind speed along with maximum temperature, which is little annoying.
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']]