We used the histogram for many players, but as we did in bar charts that we grouped the products one by one in the category can we do like this picture. https://chartio.com/assets/dfd59f/tutorials/charts/grouped-bar-charts/c1fde6017511bbef7ba9bb245a113c07f8ff32173a7c0d742a4e1eac1930a3c5/grouped-bar-example-1.png
Yes we can do the same for histogram also.
Please refer to the following Matplotlib snippet:
import matplotlib.pyplot as plt . . . . plt.hist([x, y]) plt.show()
Note that x and y can be two separate lists consisting of random numbers.