A package that transforms activity variables to fewer categories
Project description
ATUS Transformer package
This package contains two functions. One of them transforms the original ATUS activity codes into 11 broad categories:
- Sleep
- Personal Care
- Housework
- Child Care
- Adult Care
- Work and Education
- Shopping
- TV Watching
- Eating
- Leisure
- 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
- Contributions are welcome. Contact: kamilakolpashnikova@gmail.com
Author
Kamila Kolpashnikova 2021
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for ATUS_Transformer-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2470c9748ddae94423d432cbed9099696154bc1abb070fd575f8a69c531e6558 |
|
MD5 | 7ce9e40ffcb007a96066e1f14226c173 |
|
BLAKE2b-256 | e4ded690ec802ad577562164a5a18ab5ac84e5fb687f28b325bb52a6c2201291 |