Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def app():
|
|
| 14 |
st.title("Pizza Sales Data Analysis Dashboard")
|
| 15 |
df = load_data()
|
| 16 |
|
| 17 |
-
total_orders = df['order_id'].
|
| 18 |
total_revenue = df['total_price'].sum() #function which can sum the column
|
| 19 |
most_popular_size = df['pizza_size'].value_counts().idxmax() #function which can get the maximum value
|
| 20 |
most_frequent_category = df['pizza_category'].value_counts().idxmax() #function which can count of value of each product
|
|
|
|
| 14 |
st.title("Pizza Sales Data Analysis Dashboard")
|
| 15 |
df = load_data()
|
| 16 |
|
| 17 |
+
total_orders = df['order_id'].nunique() #function which can calculate the number of unique values
|
| 18 |
total_revenue = df['total_price'].sum() #function which can sum the column
|
| 19 |
most_popular_size = df['pizza_size'].value_counts().idxmax() #function which can get the maximum value
|
| 20 |
most_frequent_category = df['pizza_category'].value_counts().idxmax() #function which can count of value of each product
|