Skip to main content

A package to create data dictionaries, given a Pandas df

Project description

adamic Package

Overview

This package contains the code to build a data dictionary when passed a Pandas dataframe.

Installation

This package is available on pip. To install, run the following from your preferred shell:

pip install adamic

Use

After installing the package to your environment, import the package to your script, Jupyter notebook, or directly to the python3 command line.

from adamic import adamic

To create your data dictionary, pass a Pandas dataframe to the create_data_dictionary() function:

adamic.create_data_dictionary(sample_df)

The package will prompt you to supply definitions for each variable in the dataset. Hit Enter after supplying definition or if you want to define the variable later after the output file has been created.

Finally, you will be prompted to name your preferred file extension. .csv, .json, and .xlsx are the available options.

Credit

I've borrowed ideas for this package (especially the method of adding definitions) from this Medium article.

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

adamic-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adamic-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file adamic-0.1.3.tar.gz.

File metadata

  • Download URL: adamic-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for adamic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1838ff99ddf68c3b85cdac9e0459702a16f6d81fba81d5374feb8beebee7f2ea
MD5 ac535189eae4ee96aacf72370945c9da
BLAKE2b-256 d0dd6d175a1a974c58ea862bdeec4bd7c8b80057ea7c5995818ea6daf9577698

See more details on using hashes here.

File details

Details for the file adamic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: adamic-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for adamic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3befa01b3dae5f91b6bbbcadaf638891c86599019ad50ad367731e9ee197a2c6
MD5 35f8e3e3c305f000ded98dc17e185c15
BLAKE2b-256 77aaac2961e7f3f55cb9cce65502b4879d4e3405d74554c99b40771e90dbb407

See more details on using hashes here.

Supported by

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