(self, encoding=False)
return aggregation_data
Encode aggregation result as dict.

        Args:
            encoding: Boolean indicating if encoding info should be returned.

        Returns:
            Dict with aggregation result.
Encode aggregation result as dict.
Encode aggregation result as dict .
def to_dict(self, encoding=False):
        """Encode aggregation result as dict.

        Args:
            encoding: Boolean indicating if encoding info should be returned.

        Returns:
            Dict with aggregation result.
        """
        aggregation_data = dict(values=self.values)
        if encoding:
            aggregation_data['encoding'] = self.encoding
        return aggregation_data
def to_dict ( self , encoding = False ) : aggregation_data = dict ( values = self . values ) if encoding : aggregation_data [ 'encoding' ] = self . encoding return aggregation_data