Skip to main content

Data dictionary functionality for pandas data frames

Project description

PyPi Downloads PyPi Monthly Downloads PyPi Version Python 3.6

Data Dictionary for pandas

The data dictionary consists at least of the following columns:

  • Data Set: Used when mapping in combination with Field to rename to the column to Name.
  • Field: Column name of the data frame to map to Name.
  • Name: Column name that is unique throughout the data dictionary.
  • Description: Description of the column name. This can be used to provide additional information when displaying the data frame.
  • Type: Type the column should be cast to.
  • Format: Format to use when values need to be converted to a string representation. The format string has to be a Python format string such as {:.0f}%

The data dictionary can either be loaded from a CSV file (example data dictionary) or from a data frame.

Installation

Using pip

You can install using the pip package manager by running:

pip install pandas-datadict

Alternatively, you could install directly from Github:

pip install https://github.com/177arc/pandas-datadict/archive/master.zip

From source

Download the source code by cloning the repository or by pressing Download ZIP on this page. Install by navigating to the proper directory and running

python setup.py install

Usage

For usage guidance and testing the package interactively, hit the Usage Jupyter Notebook.

Documentation

For the code documentation, please visit the documentation Github Pages.

Contributing

  1. Fork the repository on GitHub.
  2. Run the tests with python -m pytest tests/ to confirm they all pass on your system. If the tests fail, then try and find out why this is happening. If you aren't able to do this yourself, then don't hesitate to either create an issue on GitHub, contact me on Discord or send an email to py@177arc.net.
  3. Either create your feature and then write tests for it, or do this the other way around.
  4. Run all tests again with with python -m pytest tests/ to confirm that everything still passes, including your newly added test(s).
  5. Create a pull request for the main repository's master branch.

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

pandas-datadict-0.2.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

pandas_datadict-0.2.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pandas-datadict-0.2.2.tar.gz.

File metadata

  • Download URL: pandas-datadict-0.2.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

File hashes

Hashes for pandas-datadict-0.2.2.tar.gz
Algorithm Hash digest
SHA256 289185d39f4ba68ee654c7b35ba653b820c1a1cae817fd8f6ca7c9614bc8c869
MD5 8ae3a097761993b1cfd93374f10f6e7f
BLAKE2b-256 f0ba26d690cae311211aaf43a63a50a930404163cb504fb507aa96db3ccfdd8c

See more details on using hashes here.

File details

Details for the file pandas_datadict-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pandas_datadict-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

File hashes

Hashes for pandas_datadict-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc314dc61d7b0c9c90db7e57066ec1635d617a20210c7575dca490c3b079b0a6
MD5 82d9d0f44e319e9934c33b4c4346c85a
BLAKE2b-256 9350209962c6b1eeea38c1e917d3217e2f349244a8de848249bbd524062dc6a2

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