@classmethod
def collapse_data(cls, data, function=None, kdims=None, **kwargs):
    """
        Deprecated method to perform collapse operations, which may
        now be performed through concatenation and aggregation.
        """
    raise NotImplementedError('Collapsing not implemented for %s.' % cls.
        __name__)
