CBSE Class 12 Informatics Practices Question 57 of 73

Data Visualization using Matplotlib — Question 22

Back to all questions
22
Question

Question 22

When should you create histograms and when should you create bar charts to present data visually?

Answer

Histograms are great for displaying specific ranges of values and are ideal for visualizing the results of continuous data, such as the ages of students in a class. Bar charts, on the other hand, are effective for comparing categorical or discrete data across different categories or groups, such as comparing the sales performance of different products.