Skip to main content

A tool that uses the GPT4ALL language model and the Pandas library to answer questions about dataframes

Project description

GPT4Pandas

GPT4Pandas is a tool that uses the GPT4ALL language model and the Pandas library to answer questions about dataframes. With this tool, you can easily get answers to questions about your dataframes without needing to write any code.

Installation

To install GPT4ALL Pandas Q&A, you can use pip:

pip install gpt4all-pandasqa

Usage

To use GPT4ALL Pandas Q&A, you can import the PandasQA class and create an instance of it with your dataframe:

import pandas as pd
from gpt4all_pandasqa import PandasQA

df = pd.read_csv('my_data.csv')

pandasqa = PandasQA(df)

Once you have an instance of PandasQA, you can ask it questions about your dataframe:

answer = pandasqa.ask('What is the average value of column X?')

print(answer)

This will output the answer to your question.

License GPT4ALL Pandas Q&A is licensed under the Apache License, Version 2.0. See the LICENSE file for more information.

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

gpt4pandas-0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

gpt4pandas-0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

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