0
0
SciPydata~15 mins

Descriptive statistics (describe) in SciPy - Mini Project: Build & Apply

Choose your learning style9 modes available
Descriptive statistics (describe)
📖 Scenario: You work as a data analyst for a small online store. You have collected daily sales data for a week. You want to understand the basic statistics of these sales numbers to see how the store is performing.
🎯 Goal: Build a small program that uses the scipy.stats.describe function to get descriptive statistics of daily sales data.
📋 What You'll Learn
Create a list called daily_sales with exact sales numbers for 7 days
Import the describe function from scipy.stats
Use describe on the daily_sales list to get statistics
Print the result of the describe function
💡 Why This Matters
🌍 Real World
Descriptive statistics help businesses quickly understand their data, like sales trends or customer behavior.
💼 Career
Data analysts and scientists use descriptive statistics as the first step to explore and summarize data before deeper analysis.
Progress0 / 4 steps
1
Create the daily sales data list
Create a list called daily_sales with these exact values: 150, 200, 170, 220, 180, 210, 190.
SciPy
Need a hint?

Use square brackets [] to create a list and separate numbers with commas.

2
Import the describe function
Import the describe function from the scipy.stats module.
SciPy
Need a hint?

Use the from ... import ... syntax to import only the describe function.

3
Get descriptive statistics
Use the describe function on the daily_sales list and save the result in a variable called stats.
SciPy
Need a hint?

Call describe with daily_sales inside the parentheses and assign it to stats.

4
Print the descriptive statistics
Print the variable stats to display the descriptive statistics.
SciPy
Need a hint?

Use print(stats) to show the statistics on the screen.