Skip to main content

A package that transforms activity variables to fewer categories

Project description

ATUS Transformer package

License: MIT

This package contains two functions. One of them transforms the original ATUS activity codes into 11 broad categories:

  1. Sleep
  2. Personal Care
  3. Housework
  4. Child Care
  5. Adult Care
  6. Work and Education
  7. Shopping
  8. TV Watching
  9. Eating
  10. Leisure
  11. Travel and Other

The second function recodes transformed activity codes into string names.

Installation

pip install ATUS-Transformer

Usage

  • There is (for now) 2 functions:
    • activityDictionary(). The arguments is a string containing ATUS original activity code.
    • activityNumberToString(). The argument is a number between 1 and 11.

Example: activityDictionary

import atus_transformer
atus_transformer.activityDictionary("10101")

Output

1

Note

Author

Kamila Kolpashnikova 2021

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

ATUS_Transformer-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

ATUS_Transformer-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file ATUS_Transformer-1.0.1.tar.gz.

File metadata

  • Download URL: ATUS_Transformer-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.5

File hashes

Hashes for ATUS_Transformer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 eb4409f532b58976f822c7fb5ecb6acb4368136104615a6173708e40d1181cf7
MD5 1466fb03011276483f4df08b6f7c11da
BLAKE2b-256 7dff7ac1b51c3f9231d3550aef633f0eb5a962ea9037713c7086dd5b03dfcc45

See more details on using hashes here.

File details

Details for the file ATUS_Transformer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ATUS_Transformer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.5

File hashes

Hashes for ATUS_Transformer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2470c9748ddae94423d432cbed9099696154bc1abb070fd575f8a69c531e6558
MD5 7ce9e40ffcb007a96066e1f14226c173
BLAKE2b-256 e4ded690ec802ad577562164a5a18ab5ac84e5fb687f28b325bb52a6c2201291

See more details on using hashes here.

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