Bar chart

Parameters
  • df: pd.DataFrame
    The dataframe with the data to plot
  • x: str
    The column name of the data for the bar chart. One bar per unique value will be plotted.
  • media: str
    The column name of the media to display
  • color: Optional[str] = None
    If added, the color will be used to create a stacked bar chart.
Example