DotBase
  • About Dotbase
  • Getting Started with Dotbase
  • Agents & Tools
  • Usage Guide
  • IDE Environment
  • Deployment Guide
  • Examples
    • Web Traffic Analysis Example
    • Security Audit Example
    • Code Debug Assistant
    • Data Analysis Pipeline
    • Agent Configuration
    • Tokenomics
Powered by GitBook
On this page
  1. Examples

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
PreviousCode Debug AssistantNextAgent Configuration

Last updated 4 months ago

Page cover image