CBSE Class 12 Informatics Practices Question 56 of 73

Data Visualization using Matplotlib — Question 21

Back to all questions
21
Question

Question 21

What are the various types of histograms that can be created through hist() function?

Answer

The hist() function in Matplotlib's Pyplot module allows creating various types of histograms. These include the default bar histogram (histtype='bar'), step histogram (histtype='step'), stepfilled histogram (histtype='stepfilled'), barstacked histogram (histtype='barstacked').