C10-Brazilian-e-commerce-modeling-team / brazilian-e-commerce

0 stars 6 forks source link

feat: Graph 4. Best selling time #64

Closed leopensaa closed 2 years ago

leopensaa commented 2 years ago

💡 Goal

Show the best days of the week and dates for selling online.

🤝 Acceptance Criteria

See the Notion reference with pictures as example

felipesaldata commented 2 years ago

Solution for the first AC:

best_selling_date = ord_Nov_17['revenue($R1000)'].idxmax()
best_selling_revenue = ord_Nov_17['revenue($R1000)'].max()
print(best_selling_date,'Total Revenue($): ',format(best_selling_revenue*1000,'.2f'))

Instead of print use the propel form of streamlit like st.metric()

For the second AC i don't understand if we have to make a modification of the current heatmaps availables or a new one. Image

leopensaa commented 2 years ago

We only keep one from the originals. The heat map needs to highlight the best day and moment for selling online. Thank you, @felipesaldata!