Q:

Write a NumPy program to compute the histogram of a set of data

0

Write a NumPy program to compute the histogram of a set of data.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np    
import matplotlib.pyplot as plt
plt.hist([1, 2, 1], bins=[0, 1, 2, 3, 5])
plt.show()

Sample Output:

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now