A conversational chatbot built using an intelligent Agent to assist users in analyzing CSV data files. The chatbot leverages natural language processing to understand user queries and performs data exploration, statistics calculation, and visualization tasks on CSV files.
This project integrates an Agent-based chatbot with powerful data analysis libraries to:
- Load and preview CSV files.
- Compute basic statistics (mean, median, standard deviation, etc.).
- Generate data visualizations (histograms, scatter plots, line charts, etc.).
- Provide an interactive and conversational interface with PygWalker.
- LangChain: Framework for building LLM-powered agents.
- Pandas: Data manipulation and analysis.
- NumPy: Numerical computations.
- Plotly/Matplotlib/Seaborn: Data visualization.
- Streamlit (optional): Web framework for interactive demos.
- GEMINI API: For natural language processing and agent responses.
Agent helps analyze data with input query:
Agent plot chart for visulization:
Interactive with data by PygWalker:
- Clone the repo:
git clone https://github.com/danielway2k3/Data-analytic-agent.git
cd data_analytics
- Create and activate a virtual environment:
python -m venv venv
# On Windows
venv\Scripts\activate
# On linux or MacOS
source venv/bin/activate
- Install the project dependencies:
pip install -r requirements.txt
- Configure environment variables:
Creat file name .env in the root directory.
Add your Gemini API key in .env file:
GOOGLE_API_KEY=your_gemini_api_key
Run:
streamlit run 1_Chat_With_Your_Data.py