

def line(self, source, x, y, agg=None):
    'Compute a reduction by pixel, mapping data to pixels as a line.\n\n        For aggregates that take in extra fields, the interpolated bins will\n        receive the fields from the previous point. In pseudocode:\n\n        >>> for i in range(len(rows) - 1):    # doctest: +SKIP\n        ...     row0 = rows[i]\n        ...     row1 = rows[i + 1]\n        ...     for xi, yi in interpolate(row0.x, row0.y, row1.x, row1.y):\n        ...         add_to_aggregate(xi, yi, row0)\n\n        Parameters\n        ----------\n        source : pandas.DataFrame, dask.DataFrame\n            The input datasource.\n        x, y : str\n            Column names for the x and y coordinates of each vertex.\n        agg : Reduction, optional\n            Reduction to compute. Default is ``any()``.\n        '
    from .glyphs import Line
    from .reductions import any
    if (agg is None):
        agg = any()
    return bypixel(source, self, Line(x, y), agg)

dataset/ETHPy150Open bokeh/datashader/datashader/core.py Canvas.line/original