Create a workflow to analyze sales data from CSV.
user_proxy (to analyst): Request for sales data analysis workflow.
analyst (to function):
import pandas as pd
import matplotlib.pyplot as plt
def analyze_sales(file_path):
# Read data
df = pd.read_csv(file_path)
# Monthly trends
monthly = df.groupby('month')['revenue'].sum()
# Plot results
plt.figure(figsize=(10, 6))
monthly.plot(kind='bar')
plt.title('Monthly Sales')
plt.show()
user_proxy (to analyst):
Created workflow with:
- Data import
- Monthly aggregation
- Visualization
- Export capabilities