Natural language Pandas queries and data generation
Project description
Natural language Pandas queries and data generation powered by GPT-3
Installation
pip install datasloth
Usage
In order for DataSloth to work, you must have a working OpenAI API key set in your environment variable, or provide it to the DataSloth object. For more info, refer to this guide.
DataSloth automatically discovers all Pandas dataframes in your namespace (filtering out names starting with an underscode). Before you load any data, import DataSloth and create the sloth:
from datasloth import DataSloth
sloth = DataSloth()
Next, load any data you want to use. Try naming your dataframes and columns in a meaningful way, as DataSloth uses these names to understand what the data is about.
Once your data is loaded, simply run
sloth.query('...')
to query the data.
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
File details
Details for the file datasloth-0.4.tar.gz
.
File metadata
- Download URL: datasloth-0.4.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d41f897b10c333cc6be3166eed693a732ece80f1901c93db3d40d45b40f9c5 |
|
MD5 | 4bf3ab2cc5fb2b714c3661ab4d02d729 |
|
BLAKE2b-256 | f737f2fda6043e53d1e588df94c339b3bff287de051e47282c43700e105999ef |