%pylab inline !pip install ulmo import ulmo import pandas st = ulmo.ncdc.ghcn_daily.get_stations(country='GM', as_dataframe=True) st.head() st[st.name.str.contains('HAMBURG')] data = ulmo.ncdc.ghcn_daily.get_data('GM000010147', as_dataframe=True) data tm = data['TMAX'].copy() tm.head() tm.value=tm.value/10.0 tm['value']['1980':'2010'].plot() pandas.rolling_mean(tm.value, window=365).plot() tm.value = tm.value.astype('float') tm['1950':'2012'].value.resample('A').plot() title('Annual mean daily maximum temperature in Hamburg')