Spaces:
Running
Running
File size: 496 Bytes
9a6a4dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import pandas as pd
def read_excel_and_calculate_total_sales(file_path):
# Read the Excel file
df = pd.read_excel(file_path)
# Calculate total sales
total_sales = (df['Sales'] * df['Price']).sum()
return total_sales
# File path to the Excel file
file_path = '/workspaces/gaia-agent-python/deployment-ready/7bd855d8-463d-4ed5-93ca-5fe35145f733.xlsx'
# Calculate total sales
result = read_excel_and_calculate_total_sales(file_path)
# Print the result
print(result) |