Create an app to visualize e-commerce orders
To upload files, please first save the app
import streamlit as st
import pandas as pd
st.title('E-commerce Orders Visualizer')
# Sample data
orders_data = {
'Order ID': [1, 2, 3, 4, 5],
'Customer Name': ['Alice', 'Bob', 'Charlie', 'David', 'Eve'],
'Product': ['Laptop', 'Mouse', 'Keyboard', 'Monitor', 'Printer'],
'Quantity': [2, 5, 3, 1, 2],
'Price': [1200.00, 20.00, 50.00, 300.00, 150.00],
'Total': [2400.00, 100.00, 150.00, 300.00, 300.00],
}
orders_df = pd.DataFrame(orders_data)
# Display table
st.subheader('Orders Table')
st.table(orders_df)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?