databricks.koalas.Series.plot.line

plot.line(x=None, y=None, **kwargs)

Plot Series as lines.

This function is useful to plot lines using Series’s values as coordinates.

Parameters
xint or str, optional

Columns to use for the horizontal axis. Either the location or the label of the columns to be used. By default, it will use the DataFrame indices.

yint, str, or list of them, optional

The values to be plotted. Either the location or the label of the columns to be used. By default, it will use the remaining DataFrame numeric columns.

**kwds

Keyword arguments to pass on to Series.plot().

Returns
:class:`matplotlib.axes.Axes` or :class:`numpy.ndarray`

Return an ndarray when subplots=True.

See also

matplotlib.pyplot.plot

Plot y versus x as lines and/or markers.

Examples

Basic plot.

>>> s = ks.Series([1, 3, 2])
>>> ax = s.plot.line()
../../_images/databricks-koalas-Series-plot-line-1.png