

def average_temperature(self, periods, unit):
    'The average temperatures during each period as calculated by taking\n        the mean of all available daily average temperatures during that\n        period.\n\n        Parameters\n        ----------\n        periods : [list of] eemeter.evaluation.Period\n            Time periods over which temperatures will be aggregated. A single\n            datetime period may be given.\n        unit : {"degC", "degF"}\n            The unit in which average temperatures should be returned.\n\n        Returns\n        -------\n        out : np.ndarray\n            Array of average temperatures observed during each period. If a\n            single datetime period is given, a single temperature will be\n            returned as a float.\n        '
    if is_list_like(periods):
        values = np.array([self._period_average_temperature(p, None) for p in periods])
        return self._unit_convert(values, unit)
    else:
        return self._period_average_temperature(periods, p)

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py WeatherSourceBase.average_temperature/VarMisuse@68/314 `unit`->`p`