Example #1
0
    def groupby(cls, dataset, dimensions, container_type, group_type, **kwargs):
        geo_dims = cls.geom_dims(dataset)
        if any(d in geo_dims for d in dimensions):
            raise DataError("GeoPandasInterface does not allow grouping "
                            "by geometry dimension.", cls)

        return PandasInterface.groupby(dataset, dimensions, container_type, group_type, **kwargs)
Example #2
0
 def groupby(cls, columns, dimensions, container_type, group_type, **kwargs):
     from holoviews.core.data import PandasInterface
     return PandasInterface.groupby(columns, dimensions, container_type, group_type, **kwargs)