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.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

adamic-0.1.0-py3-none-any.whl (3.8 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