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 hashes)

Uploaded Source

Built Distribution

ATUS_Transformer-1.0.1-py3-none-any.whl (5.0 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