You have to visualize the frequency distribution of a categorical variable. Which type of plot would you prefer using Matplotlib?

  • Bar Plot
  • Histogram
  • Line Plot
  • Scatter Plot
To visualize the frequency distribution of a categorical variable, a bar plot is commonly used in Matplotlib. Each category is represented by a bar, and the height of the bar corresponds to the frequency or count of that category in the dataset.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *