class_docstr: DataFrame plotting accessor and method
  
  Examples
  --------
  >>> df.plot_bokeh.line()
  >>> df.plot_bokeh.scatter('x', 'y')
  >>> df.plot_bokeh.hexbin()
  
  These plotting methods can also be accessed by calling the accessor as a
  method with the ``kind`` argument:
  ``df.plot_bokeh(kind='line')`` is equivalent to ``df.plot_bokeh.line()``
class_docstr_tok: ["DataFrame","plotting","accessor","and","method","Examples","--","--","--","--",">",">",">","df.plot_bokeh.line","(",")",">",">",">","df.plot_bokeh.scatter","(","'","x","'",",","'","y","'",")",">",">",">","df.plot_bokeh.hexbin","(",")","These","plotting","methods","can","also","be","accessed","by","calling","the","accessor","as","a","method","with","the","``","kind","``","argument",":","``","df.plot_bokeh","(","kind='line","'",")","``","is","equivalent","to","``","df.plot_bokeh.line","(",")","``"]
docstr: Generate a pie plot.
  
  A pie plot is a proportional representation of the numerical data in a
  column. This function wraps :meth:`matplotlib.pyplot.pie` for the
  specified column. If no column reference is passed and
  ``subplots=True`` a pie plot is drawn for each numerical column
  independently.
  
  Parameters
  ----------
  y : int or label, optional
      Label or position of the column(s) to plot.
  **kwds
      Keyword arguments to pass on to :meth:`pandas.DataFrame.plot_bokeh`.
  
  Returns
  -------
  Bokeh.plotting.figure
  
  See Also
  --------
  Series.plot.pie : Generate a pie plot for a Series.
  DataFrame.plot : Make plots of a DataFrame.
  
  Examples
  --------
  In the example below we have a DataFrame with the information about
  planet's mass and radius. We pass the the 'mass' column to the
  pie function to get a pie plot.
  
  .. plot::
      :context: close-figs
  
      >>> df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97],
      ...                    'radius': [2439.7, 6051.8, 6378.1]},
      ...                   index=['Mercury', 'Venus', 'Earth'])
      >>> plot = df.plot_bokeh.pie(y='mass')
  
  When you pass multiple y-columns, the plot contains several nested
  pieplots:
  
  .. plot::
      :context: close-figs
  
      >>> plot = df.plot.pie()
docstr_tok: ["Generate","a","pie","plot",".","A","pie","plot","is","a","proportional","representation","of","the","numerical","data","in","a","column",".","This","function","wraps",":","meth",":","`","matplotlib.pyplot.pie","`","for","the","specified","column",".","If","no","column","reference","is","passed","and","``","subplots=True","``","a","pie","plot","is","drawn","for","each","numerical","column","independently",".","Parameters","--","--","--","--","--","y",":","int","or","label",",","optional","Label","or","position","of","the","column","(","s",")","to","plot",".","*","*","kwds","Keyword","arguments","to","pass","on","to",":","meth",":","`","pandas.DataFrame.plot_bokeh","`",".","Returns","--","--","--","-","Bokeh.plotting.figure","See","Also","--","--","--","--","Series.plot.pie",":","Generate","a","pie","plot","for","a","Series",".","DataFrame.plot",":","Make","plots","of","a","DataFrame",".","Examples","--","--","--","--","In","the","example","below","we","have","a","DataFrame","with","the","information","about","planet","'s","mass","and","radius",".","We","pass","the","the","'mass","'","column","to","the","pie","function","to","get","a","pie","plot",".","..","plot",":",":",":","context",":","close-figs",">",">",">","df","=","pd.DataFrame","(","{","'mass","'",":","[","0.330",",","4.87",",","5.97","]",",","...","'radius","'",":","[","2439.7",",","6051.8",",","6378.1","]","}",",","...","index=","[","'Mercury","'",",","'Venus","'",",","'Earth","'","]",")",">",">",">","plot","=","df.plot_bokeh.pie","(","y='mass","'",")","When","you","pass","multiple","y-columns",",","the","plot","contains","several","nested","pieplots",":","..","plot",":",":",":","context",":","close-figs",">",">",">","plot","=","df.plot.pie","(",")"]
code: def pie(self, y=None, **kwds):
      """
      Generate a pie plot.
  
      A pie plot is a proportional representation of the numerical data in a
      column. This function wraps :meth:`matplotlib.pyplot.pie` for the
      specified column. If no column reference is passed and
      ``subplots=True`` a pie plot is drawn for each numerical column
      independently.
  
      Parameters
      ----------
      y : int or label, optional
          Label or position of the column(s) to plot.
      **kwds
          Keyword arguments to pass on to :meth:`pandas.DataFrame.plot_bokeh`.
  
      Returns
      -------
      Bokeh.plotting.figure
  
      See Also
      --------
      Series.plot.pie : Generate a pie plot for a Series.
      DataFrame.plot : Make plots of a DataFrame.
  
      Examples
      --------
      In the example below we have a DataFrame with the information about
      planet's mass and radius. We pass the the 'mass' column to the
      pie function to get a pie plot.
  
      .. plot::
          :context: close-figs
  
          >>> df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97],
          ...                    'radius': [2439.7, 6051.8, 6378.1]},
          ...                   index=['Mercury', 'Venus', 'Earth'])
          >>> plot = df.plot_bokeh.pie(y='mass')
  
      When you pass multiple y-columns, the plot contains several nested
      pieplots:
  
      .. plot::
          :context: close-figs
  
          >>> plot = df.plot.pie()
  
      """
      return self(kind="pie", y=y, **kwds)
  
imports: import datetime
  import numbers
  import warnings
  from copy import deepcopy
  from typing import Iterable, List, Optional, Union
  import numpy
  import pandas
  from bokeh.layouts import column
  from bokeh.models import ColorBar, ColumnDataSource, DatetimeTickFormatter, FuncTickFormatter, HoverTool, LinearColorMapper, RangeTool
  from bokeh.models.ranges import Range1d
  from bokeh.palettes import Inferno256, all_palettes
  from bokeh.plotting import figure
  from bokeh.transform import cumsum, dodge
  from pandas.core.base import PandasObject
  from pandas.errors import ParserError
  from .base import embedded_html, set_fontsizes_of_figure, show
  from .geoplot import geoplot
  from .utils import _extract_additional_columns
label_desc: Use image node_id 11 for calling the FramePlotMethods obj's underlying member method code with example usage: obj.pie(y) and returns: self