Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for pandas-datadict, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pandas_datadict-0.1.1-py3-none-any.whl (12.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pandas-datadict-0.1.1.tar.gz (7.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page