datascience.tables.Table.group_barh

Table.group_barh(column_label, **vargs)[source]

Plot a horizontal bar chart for the table.

The values of the specified column are grouped and counted, and one bar is produced for each group.

Note: This differs from barh in that there is no need to specify bar heights; the size of a category’s bar is the number of copies of that category in the given column. This method behaves more like hist in that regard, while barh behaves more like plot or scatter (which require the second coordinate of each point to be specified in another column).

Args:

column_label (str or int): The name or index of a column

Kwargs:
overlay (bool): create a chart with one color per data column;

if False, each will be displayed separately.

width (float): The width of the plot, in inches height (float): The height of the plot, in inches

vargs: Additional arguments that get passed into plt.bar.

See http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.bar for additional arguments that can be passed into vargs.