class_docstr: Series/Frames plotting accessor and method.
  
  Uses the backend specified by the
  option ``plotting.backend``. By default, plotly is used.
  
  Plotting methods can also be accessed by calling the accessor as a method
  with the ``kind`` argument:
  ``s.plot(kind='hist')`` is equivalent to ``s.plot.hist()``
docstr: Plot DataFrame/Series as lines.
  
  This function is useful to plot lines using Series's values
  as coordinates.
  
  Parameters
  ----------
  x : int 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.
  y : int, 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 :meth:`Series.plot` or :meth:`DataFrame.plot`.
  
  Returns
  -------
  :class:`plotly.graph_objs.Figure`
      Return an custom object when ``backend!=plotly``.
      Return an ndarray when ``subplots=True`` (matplotlib-only).
  
  See Also
  --------
  plotly.express.line : Plot y versus x as lines and/or markers (plotly).
  matplotlib.pyplot.plot : Plot y versus x as lines and/or markers (matplotlib).
  
  Examples
  --------
  Basic plot.
  
  For Series:
  
  .. plotly::
  
      >>> s = ps.Series([1, 3, 2])
      >>> s.plot.line()  # doctest: +SKIP
  
  For DataFrame:
  
  .. plotly::
  
      The following example shows the populations for some animals
      over the years.
  
      >>> df = ps.DataFrame({'pig': [20, 18, 489, 675, 1776],
      ...                    'horse': [4, 25, 281, 600, 1900]},
      ...                   index=[1990, 1997, 2003, 2009, 2014])
      >>> df.plot.line()  # doctest: +SKIP
  
  .. plotly::
  
      The following example shows the relationship between both
      populations.
  
      >>> df = ps.DataFrame({'pig': [20, 18, 489, 675, 1776],
      ...                    'horse': [4, 25, 281, 600, 1900]},
      ...                   index=[1990, 1997, 2003, 2009, 2014])
      >>> df.plot.line(x='pig', y='horse')  # doctest: +SKIP
docstr_tok: ["Plot","DataFrame\/Series","as","lines",".","This","function","is","useful","to","plot","lines","using","Series","'s","values","as","coordinates",".","Parameters","--","--","--","--","--","x",":","int","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",".","y",":","int",",","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",":","meth",":","`","Series.plot","`","or",":","meth",":","`","DataFrame.plot","`",".","Returns","--","--","--","-",":","class",":","`","plotly.graph_objs.Figure","`","Return","an","custom","object","when","``","backend","!","=plotly","``",".","Return","an","ndarray","when","``","subplots=True","``","(","matplotlib-only",")",".","See","Also","--","--","--","--","plotly.express.line",":","Plot","y","versus","x","as","lines","and\/or","markers","(","plotly",")",".","matplotlib.pyplot.plot",":","Plot","y","versus","x","as","lines","and\/or","markers","(","matplotlib",")",".","Examples","--","--","--","--","Basic","plot",".","For","Series",":","..","plotly",":",":",">",">",">","s","=","ps.Series","(","[","1",",","3",",","2","]",")",">",">",">","s.plot.line","(",")","#","doctest",":","+SKIP","For","DataFrame",":","..","plotly",":",":","The","following","example","shows","the","populations","for","some","animals","over","the","years",".",">",">",">","df","=","ps.DataFrame","(","{","'pig","'",":","[","20",",","18",",","489",",","675",",","1776","]",",","...","'horse","'",":","[","4",",","25",",","281",",","600",",","1900","]","}",",","...","index=","[","1990",",","1997",",","2003",",","2009",",","2014","]",")",">",">",">","df.plot.line","(",")","#","doctest",":","+SKIP","..","plotly",":",":","The","following","example","shows","the","relationship","between","both","populations",".",">",">",">","df","=","ps.DataFrame","(","{","'pig","'",":","[","20",",","18",",","489",",","675",",","1776","]",",","...","'horse","'",":","[","4",",","25",",","281",",","600",",","1900","]","}",",","...","index=","[","1990",",","1997",",","2003",",","2009",",","2014","]",")",">",">",">","df.plot.line","(","x='pig","'",",","y='horse","'",")","#","doctest",":","+SKIP"]
code: def line(self, x=None, y=None, **kwargs):
      """
      Plot DataFrame/Series as lines.
  
      This function is useful to plot lines using Series's values
      as coordinates.
  
      Parameters
      ----------
      x : int 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.
      y : int, 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 :meth:`Series.plot` or :meth:`DataFrame.plot`.
  
      Returns
      -------
      :class:`plotly.graph_objs.Figure`
          Return an custom object when ``backend!=plotly``.
          Return an ndarray when ``subplots=True`` (matplotlib-only).
  
      See Also
      --------
      plotly.express.line : Plot y versus x as lines and/or markers (plotly).
      matplotlib.pyplot.plot : Plot y versus x as lines and/or markers (matplotlib).
  
      Examples
      --------
      Basic plot.
  
      For Series:
  
      .. plotly::
  
          >>> s = ps.Series([1, 3, 2])
          >>> s.plot.line()  # doctest: +SKIP
  
      For DataFrame:
  
      .. plotly::
  
          The following example shows the populations for some animals
          over the years.
  
          >>> df = ps.DataFrame({'pig': [20, 18, 489, 675, 1776],
          ...                    'horse': [4, 25, 281, 600, 1900]},
          ...                   index=[1990, 1997, 2003, 2009, 2014])
          >>> df.plot.line()  # doctest: +SKIP
  
      .. plotly::
  
          The following example shows the relationship between both
          populations.
  
          >>> df = ps.DataFrame({'pig': [20, 18, 489, 675, 1776],
          ...                    'horse': [4, 25, 281, 600, 1900]},
          ...                   index=[1990, 1997, 2003, 2009, 2014])
          >>> df.plot.line(x='pig', y='horse')  # doctest: +SKIP
      """
      return self(kind="line", x=x, y=y, **kwargs)
  
imports: import importlib
  import pandas
  import numpy
  from pandas.core.base import PandasObject
  from pandas.core.dtypes.inference import is_integer
  from pyspark.ml.feature import Bucketizer
  from pyspark.mllib.stat import KernelDensity
  from pyspark.sql import functions
  from pyspark.pandas.missing import unsupported_function
  from pyspark.pandas.config import get_option
  from pyspark.pandas.utils import name_like_string
label_desc: Use image node_id 5 for calling the PandasOnSparkPlotAccessor obj's underlying member method code with example usage: obj.line(x, y) and returns: self