March 2020
Beginner to intermediate
352 pages
8h 40m
English
Histogram plots are used to depict the distribution of any continuous variable. These types of plots are very popular in statistical analysis.
Consider the following use cases. A survey created in vocational training sessions of developers had 100 participants. They had several years of Python programming experience ranging from 0 to 20.
Let's import the required libraries and create the dataset:
import numpy as npimport matplotlib.pyplot as plt#Create data setyearsOfExperience = np.array([10, 16, 14, 5, 10, 11, 16, 14, 3, 14, 13, 19, 2, 5, 7, 3, 20, 11, 11, 14, 2, 20, 15, 11, 1, 15, 15, 15, 2, 9, 18, 1, 17, 18, 13, 9, 20, 13, 17, 13, 15, 17, 10, 2, 11, 8, 5, 19, 2, 4, 9, 17, 16, 13, 18, 5, 7, 18, 15, 20, 2, 7, 0, 4, 14, 1, 14, ...
Read now
Unlock full access