This video shows an example how to create a histogram in Power BI using Python.
Python code:
import matplotlib.pyplot as plt
plt.hist(dataset.Age, bins=10, edgecolor="#FFFFFF")
plt.xlabel("Age")
plt.ylabel("Number of persons")
plt.title("Population Distribution by Age")
plt.show()