def datetime_average_temperature(self, dt, unit):

        try:
            value = self.tempC[dt.strftime("%Y-%m-%d")].mean()
            return self._unit_convert(value, unit)
        except KeyError:
            try:
                self._fetch_datetime(dt)
                value = self.tempC[dt.strftime("%Y-%m-%d")].mean()
                return self._unit_convert(value, unit)
            except KeyError:
                pass
        return np.nan
The daily average temperatures for a particular period.
dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py/WeatherSourceBase.datetime_average_temperature