plot_bar
Create bar plots showing top N value counts for a categorical column, revealing dominant and rare categories to guide grouping and stratified sampling in EDA.
Instructions
Bar plot of value counts (top N categories). Vertical or horizontal. Understand categorical distributions during EDA. Reveals rare categories for potential grouping and dominant categories for stratified sampling. Example: plot_bar(column="CargoType", top_n=10, orientation="horizontal")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| column | Yes | ||
| df_name | No | ||
| save_path | No | ||
| orientation | No | vertical |