def bar(self, subset=None, axis=<NUM_LIT:0>, color='<STR_LIT>', width=<NUM_LIT:100>,<EOL>align='<STR_LIT:left>', vmin=None, vmax=None):
if align not in ('<STR_LIT:left>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not (is_list_like(color)):<EOL><INDENT>color = [color, color]<EOL><DEDENT>elif len(color) == <NUM_LIT:1>:<EOL><INDENT>color = [color[<NUM_LIT:0>], color[<NUM_LIT:0>]]<EOL><DEDENT>elif len(color) > <NUM_LIT:2>:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>subset = _maybe_numeric_slice(self.data, subset)<EOL>subset = _non_reducing_slice(subset)<EOL>self.apply(self._bar, subset=subset, axis=axis,<EOL>align=align, colors=color, width=width,<EOL>vmin=vmin, vmax=vmax)<EOL>return self<EOL>
Draw bar chart in the cell backgrounds.

Parameters
----------
subset : IndexSlice, optional
    A valid slice for `data` to limit the style application to.
axis : {0 or 'index', 1 or 'columns', None}, default 0
    apply to each column (``axis=0`` or ``'index'``), to each row
    (``axis=1`` or ``'columns'``), or to the entire DataFrame at once
    with ``axis=None``.
color : str or 2-tuple/list
    If a str is passed, the color is the same for both
    negative and positive numbers. If 2-tuple/list is used, the
    first element is the color_negative and the second is the
    color_positive (eg: ['#d65f5f', '#5fba7d']).
width : float, default 100
    A number between 0 or 100. The largest value will cover `width`
    percent of the cell's width.
align : {'left', 'zero',' mid'}, default 'left'
    How to align the bars with the cells.

    - 'left' : the min value starts at the left of the cell.
    - 'zero' : a value of zero is located at the center of the cell.
    - 'mid' : the center of the cell is at (max-min)/2, or
      if values are all negative (positive) the zero is aligned
      at the right (left) of the cell.

      .. versionadded:: 0.20.0

vmin : float, optional
    Minimum bar value, defining the left hand limit
    of the bar drawing range, lower values are clipped to `vmin`.
    When None (default): the minimum value of the data will be used.

    .. versionadded:: 0.24.0

vmax : float, optional
    Maximum bar value, defining the right hand limit
    of the bar drawing range, higher values are clipped to `vmax`.
    When None (default): the maximum value of the data will be used.

    .. versionadded:: 0.24.0

Returns
-------
self : Styler