Open the Code tab and edit the main.py file
main.py
file.Add the following code to the main.py
file. It creates a pandas DataFrame with the sales data and sets it in the state as sales_report
.Add a DataFrame component to the agent's interface
@{sales_report}
. This is the state variable that contains the sales report data.yes
yes
yes
if you want users to modify dataproduct_category
product_name
quantity
unit_price
sales_rep
date
region
Add a File input component to allow users to upload the CSV file
Upload CSV
.csv
input_file
Add a Button component to trigger the file upload
Process CSV
Add a DataFrame component
@{processed_data}
. This is the state variable that will contain the processed data after you build the blueprint.Add a UI Trigger
wf-click
Add a Python code block