Saif-bio commited on
Commit
ce9bbf2
·
verified ·
1 Parent(s): 0462054

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'].value_counts() #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
 
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