# Data Analysis Pipeline

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dotbase.gitbook.io/dotbase/examples/data-analysis-pipeline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
