セクション 1. 章 14
single
Challenge: Build a Simple Metrics Dashboard
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Task: Business Metrics Dashboard
Create a function print_metrics_dashboard(df) that accepts a DataFrame with sales, conversions, and visits columns and prints a formatted summary of key business metrics.
- Calculate total sales — the sum of the
salescolumn - Calculate average order value — the mean of the
salescolumn - Calculate conversion rate — the sum of
conversionsdivided by the sum ofvisits, multiplied by 100
The printed output must include:
- A header line:
=== Metrics Dashboard === - Total sales formatted as:
Total Sales: $X,XXX.XX - Average order value formatted as:
Average Order Value: $X,XXX.XX - Conversion rate formatted as:
Conversion Rate: XX.XX%
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 14
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください