🐣 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
Metadata
Release files for gpt-data-dictionary 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gpt_data_dictionary-0.1.0.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gpt_data_dictionary-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / gpt_data_dictionary-0.1.0.tar.gz
| Download URL | gpt_data_dictionary-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ead26d2c4c0aecb795039957e5b1133a023b228bd6c23d03ed469d04c981622
|
|
BLAKE2b-256 checksum How to use checksums |
0386620f8f5dca811cb9beb95b99c78353e8a5b89214c83ba8868f3d28179940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.11 Linux/4.15.0-212-generic
|
Release files / gpt_data_dictionary-0.1.0-py3-none-any.whl
| Download URL | gpt_data_dictionary-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93e582279242683cf27115072327a76d626c55c3cc66437f3981c69e51815ac1
|
|
BLAKE2b-256 checksum How to use checksums |
3416004d0c17390563bed091327eaf05db73cf4de6e14e96076e6685449942d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.11 Linux/4.15.0-212-generic
|