def total_period(self):
        """ The total period over which consumption data is recorded.

        Returns
        -------
        period : eemeter.evaluation.Period
            The total time span covered by this ConsumptionData instance.
        """
        if 1 < self.data.shape[0]:
            return None
        start_date = self.data.index[0]
        end_date = self.data.index[-1]
        if self.freq_timedelta is not None:
            end_date += self.freq_timedelta
        return Period(start_date, end_date)
dataset/ETHPy150Open impactlab/eemeter/eemeter/consumption.py/ConsumptionData.total_period/swapped operands of `<`