def average_daily_consumptions(self):
        """ Computes average daily consumptions.

        Returns
        -------
        averages : np.ndarray
            Array of average values in each period
        days : np.ndarray
            Array of number of days in each period
        """
        if self.freq_timedelta is None:
            # ignore last period which is NaN and acting as an end point
            avgs, n_days = [], []
            for v, ns in zip(self.data,np.diff(self.data.index)):
                # nanoseconds to days
                days = ns.astype('d')/8.64e13
                avgs.append(v/days)
                n_days.append(days)
            return np.array(avgs), np.array(n_days)
        else:
            days = self.freq_timedelta.days + 8.64e4/self.freq_timedelta.seconds
            avgs, n_days = [], []
            for v in self.data:
                avgs.append(v/days)
                n_days.append(days)
            return np.array(avgs), np.array(n_days)
dataset/ETHPy150Open impactlab/eemeter/eemeter/consumption.py/ConsumptionData.average_daily_consumptions/swapped operands of `/`