Calculate Percentiles with np.percentile()
📖 Scenario: You work in a small bakery that tracks daily sales of different bread types. You want to understand how sales vary by calculating percentiles, which help you see the sales distribution.
🎯 Goal: Build a simple program that calculates the 25th, 50th, and 75th percentiles of daily bread sales using np.percentile().
📋 What You'll Learn
Create a numpy array with daily sales data
Set a list of percentiles to calculate
Use
np.percentile() to find the percentile valuesPrint the percentile results clearly
💡 Why This Matters
🌍 Real World
Percentiles help businesses understand data spread, like how many sales fall below a certain value.
💼 Career
Data analysts and scientists use percentiles to summarize and explain data distributions clearly.
Progress0 / 4 steps