data-dictionary is a Python package that automates the creation of data dictionaries utilizing LLM. It generates human-readable variable names and provides comprehensive metadata, making it an essential tool for data management, enhancing data interpretability and quality assurance.
Project description
🐣 GPT Data Dictionary
Introduction
As a Senior Staff Spreadsheet Engineer, you understand the challenges of dealing with ambiguously and poorly defined data. The GPT Data Dictionary aims to alleviate this pain point by automating the creation of comprehensive and understandable data dictionaries.
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>Them: Can you just quickly pull this data for me?
— Seth Rosen (@sethrosen) April 20, 2020
Me: Sure, let me just:
SELECT * FROM some_ideal_clean_and_pristine.table_that_you_think_exists
What is a Data Dictionary?
A data dictionary is a centralized resource that offers metadata about data elements within a system or project. It outlines key details such as data types, constraints, and definitions, thus facilitating data interpretation and quality assurance. Essentially, a data dictionary is your go-to guide for understanding and managing your data landscape.
Features
- Automated Metadata Extraction: Quickly generate metadata for each column in your dataset, including data types, allowed values, and more.
- Readable Variable Names: Utilizes GPT-3.5 to automatically generate human-readable variable names.
- Quality Indicators: Provides metadata that can be useful for data quality checks.
- Extensible: Easily extendable to include more advanced statistics or custom metadata as required.
How to Use
-
Install Dependencies: Make sure you've installed all required Python packages.
poetry install -
Run the Script: Execute the main Python script and provide the path to your CSV file.
poetry run scripts/extract_gpt_data_dictionary.py --csv-file=/path/to/your/csv/file.csv
-
Review and Edit: The generated data dictionary will be saved as a CSV file. Open it to manually enter any domain-specific information that couldn't be automatically generated.
-
Finalize: Save your changes to the data dictionary CSV. You can now use this as a comprehensive guide for data understanding and manipulation.
Example
Running this script for the all famous titanic dataset on Kaggle:
```bash
poetry run scripts/extract_gpt_data_dictionary.py --csv-file=data/titanic_train.csv
```
And it will output gpt_data_dictionary.csv
Contribution
We welcome contributions! Feel free to fork this repository and submit pull requests, or open an issue to discuss what you'd like to add.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpt_data_dictionary-0.1.0.tar.gz.
File metadata
- Download URL: gpt_data_dictionary-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.10.11 Linux/4.15.0-212-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ead26d2c4c0aecb795039957e5b1133a023b228bd6c23d03ed469d04c981622
|
|
| MD5 |
b44551a63ed95f0a95d8aff315655595
|
|
| BLAKE2b-256 |
0386620f8f5dca811cb9beb95b99c78353e8a5b89214c83ba8868f3d28179940
|
File details
Details for the file gpt_data_dictionary-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gpt_data_dictionary-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.10.11 Linux/4.15.0-212-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e582279242683cf27115072327a76d626c55c3cc66437f3981c69e51815ac1
|
|
| MD5 |
c347fabec27e09e6cddb4e4157183c36
|
|
| BLAKE2b-256 |
3416004d0c17390563bed091327eaf05db73cf4de6e14e96076e6685449942d1
|