??Creating a Matplotlib Histogram
Create a histogram to analyze the distribution of customer spending per visit at a shopping mall, using 'mintcream' for low spenders, 'salmon' for medium spenders, and 'darkcyan' for high spenders.
This exercise will enhance your ability to work with categorical data, apply colour mapping, and generate clear, insightful charts.
Approach Hints
If you're solving this on your own, consider these technical points:
Grouping Data
Histogram Plotting
Colour Mapping
Figure Size
Legend & Grid
Take the challenge!
??? We’d Love Your Feedback!
We’re always looking to improve the content we share with you. Take a moment to fill out a quick survey and let us know your thoughts and any features you'd like to see on StrataScratch.
??? More Education Resources
Expand your knowledge with these insightful reads:
Learn the key differences between one-tailed and two-tailed hypothesis tests, when to use each, and how they impact statistical analysis.
Discover alternative Python libraries that go beyond pandas to help you handle larger datasets, optimise performance, and improve your data science workflows.