

def bypixel(source, canvas, glyph, agg):
    'Compute an aggregate grouped by pixel sized bins.\n\n    Aggregate input data ``source`` into a grid with shape and axis matching\n    ``canvas``, mapping data to bins by ``glyph``, and aggregating by reduction\n    ``agg``.\n\n    Parameters\n    ----------\n    source : pandas.DataFrame, dask.DataFrame\n        Input datasource\n    canvas : Canvas\n    glyph : Glyph\n    agg : Reduction\n    '
    dshape = discover(source)
    if (not istabular(dshape)):
        raise ValueError('source must be tabular')
    schema = dshape.measure
    glyph.validate(schema)
    agg.validate(schema)
    return bypixel.pipeline(source, schema, canvas, glyph, agg)

dataset/ETHPy150Open bokeh/datashader/datashader/core.py bypixel/original