Skip to main content

An AI-powered data analysis agent for intelligent data insights and visualization

Project description

dxel: AI-Powered Data Analysis Agent

dxel is an extensible Python package designed to automate and enhance data analysis workflows using Large Language Models (LLMs) and agent-based orchestration. It enables users to interact with their data, generate insights, and visualize results through natural language queries and intelligent agents.

Project Overview

Key Capabilities:

  • LLM-powered data analysis and summarization
  • Automated data exploration and visualization
  • Agent-based orchestration for complex workflows
  • Extensible architecture for custom agents and LLMs
  • Integration with Gemini and other LLM providers

Typical Use Cases:

  • Rapid data exploration and summary generation
  • Automated report creation
  • Interactive data querying and visualization
  • Building custom data agents for business intelligence

How It Works:

  1. Users provide a dataset and a natural language query.
  2. dxel agents interpret the query, analyze the data, and return results or visualizations.
  3. LLMs (like Gemini) are used for reasoning, summarization, and generating code or explanations.

The package is modular, allowing you to add new agents, LLM integrations, or utilities as needed.

Prerequisites

  • Python 3.11+
  • Install dxel in editable mode:
    conda activate datagenie && pip install -e .
    
  • Set your GOOGLE_API_KEY as an environment variable for Gemini LLM access.
  • Place your dataset (e.g., Titanic-Dataset.csv) in notebook_io/data_agent/input/

Demo Notebook: Step-by-Step Walkthrough

  1. Import Required Libraries and dxel Modules
    • Import standard Python libraries (os, sys, pandas, numpy, etc.)
  • Import dxel modules:
    from datagenie.utils.llm_agent.agent import Agent
    from datagenie.utils.llm.gemini import Gemini
    from datagenie.datascience.agent import DataAnalystAgent
    
  1. Set Data Path and API Key

    • Define the path to your dataset (e.g., Titanic-Dataset.csv):
      data_loc = 'notebook_io/data_agent/input/Titanic-Dataset.csv'
      
    • Load your Google Gemini API key from environment variables:
      api_key = os.getenv('GOOGLE_API_KEY')
      
  2. Initialize Gemini LLM and DataAnalystAgent

    • Create a Gemini LLM client:
      gemini_llm = Gemini(api_key=api_key)
      
    • Initialize the DataAnalystAgent with your data and API key:
      data_analyst_agent = DataAnalystAgent(data_loc, api_key)
      
  3. Run Data Analysis Queries

    • Get column information:

      data_analyst_agent.think('tell me all columns')
      
    • Below is the output generated by above query.

    • Columns Output

    • Get distribution of the age column:

      o = data_analyst_agent.think('give me distribution of age column')
      
    • Below is a sample output image generated by the DataAnalystAgent for the age column distribution:

    • Age Column Distribution

Features Demonstrated

  • LLM-powered data analysis
  • Data summarization and column insights
  • Distribution queries

For more details, see the notebook: demo_notebook/data_analyst_agent.ipynb

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dxel-0.1.0b1.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dxel-0.1.0b1-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file dxel-0.1.0b1.tar.gz.

File metadata

  • Download URL: dxel-0.1.0b1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dxel-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 82d362cd770d38483c21406082e7f6df24655157b5403fd1a2841556fa52594f
MD5 53ad7f7c295377d15f244930651ac1a8
BLAKE2b-256 6d68163635e15cfcecbed1f02e69a4a5f259fb4dbc5fe7463ee8be4fb201737e

See more details on using hashes here.

File details

Details for the file dxel-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: dxel-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dxel-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 10d003e1dc9f3f5f017e13598c938304e5f173cc990cfe9ceed8e425aa4a3fbc
MD5 8e1d9191eda4f4283fcd52423b71d85d
BLAKE2b-256 cdf29fb0d4db2688a7a2db74d05980e14b5fa717a8014de496619de3fd67ac12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page