> For the complete documentation index, see [llms.txt](https://dotbase-ai.gitbook.io/dotbase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dotbase-ai.gitbook.io/dotbase/examples/data-analysis-pipeling.md).

# Data Analysis Pipeling

**Initial Prompt**

```
Create a workflow to analyze sales data from CSV.
```

**Output**

```
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
```
