menu_book Course Curriculum (Data Science Foundations) expand_more
Workflow & Data
NumPy
pandas
Cleaning
EDA & Statistics
Visualization
Feature Engineering
Histogram
Learn Histogram in Data Science Foundations with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
data-science-048.py
python
import matplotlib.pyplot as plt
ages=[18,19,21,21,22,25,28,31,34,40]
plt.hist(ages,bins=[18,22,26,30,34,38,42])
plt.xlabel("Age");plt.ylabel("Count");plt.show()
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content