Using mean aggregator with frequency limit on rasterize

Hello,
Is it possible to tell rasterize to only calculate an aggregator function (ex: mean) when the count behind the pixel is above a certain limit? I need the result to be dynamic with other graphes (using link selection)

Today, I’m doing the following:

        import bokeh,datashader as ds
        from holoviews.operation.datashader import aggregate, spread
        from holoviews.operation import datashader as hd
        ls3 = hv.link_selections.instance()

        shaded = spread(hd.rasterize(hv.Points(df, ['x','y']),
                                     aggregator=ds.mean('speed'),
                                     dynamic=True
                                    ))
        tracks = tile.redim.range(x=lon_range, y=lat_range)*ls3(shaded.opts(colorbar=True,
                                                                        cmap='rainbow',
                                                                        cnorm='eq_hist',
                                                                        frame_width =map_width,
                                                                        frame_height=map_height))

Thanks
Matt