diff --git a/.gitignore b/.gitignore index d8eff1c..1be63ce 100644 --- a/.gitignore +++ b/.gitignore @@ -111,3 +111,5 @@ crashlytics.properties crashlytics-build.properties atusdata/ +.direnv +.envrc diff --git a/ATUS_Analysis.ipynb b/ATUS_Analysis.ipynb new file mode 100644 index 0000000..22e6773 --- /dev/null +++ b/ATUS_Analysis.ipynb @@ -0,0 +1,9424 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#ATUS Analysis\n", + "This notebook documents an initial exploration of the dataset provided by the [American Time Use Survey](http://www.bls.gov/tus/)" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "collapsed": true + }, + "source": [ + "####* [Jump to Table of Contents](#Table-of-Contents:)" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import math\n", + "import re\n", + "import zipfile\n", + "import seaborn as sns\n", + "import matplotlib.pyplot as plt\n", + "import atus # Custom atus helper and analysis functions\n", + "import parse_activities as pa # Contains lookup dictionaries/lists for activity codes generated from PDF scrape\n", + "%matplotlib inline" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "activity_codes.pdf atusact_2013.zip atuscps_2013.zip atusresp_2013.zip atusrost_2013.zip atusrostec_2013.zip atussum_2013.zip atususersguide.pdf atuswho_2013.zip data_dictionary.pdf\r\n" + ] + } + ], + "source": [ + "!ls atusdata/ # These datafiles were downloaded via the download_data script" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "##Relevant links:\n", + "These files provide detailed supporting information on the dataset files\n", + "- [activity_codes.pdf](atusdata/activity_codes.pdf)\n", + "\n", + "- [atususersguide.pdf](atusdata/atususersguide.pdf)\n", + "\n", + "- [data_dictionary.pdf](atusdata/data_dictionary.pdf)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
2 | \n", + "20130101130123 | \n", + "10377056.507734 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
3 | \n", + "20130101130611 | \n", + "7731257.992805 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
4 | \n", + "20130101130616 | \n", + "4725269.227067 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
5 rows × 413 columns
\n", + "\n", + " | tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
2 | \n", + "20130101130123 | \n", + "10377056.507734 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
3 | \n", + "20130101130611 | \n", + "7731257.992805 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
4 | \n", + "20130101130616 | \n", + "4725269.227067 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
5 rows × 413 columns
\n", + "\n", + " | tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
\n", + " | atus_case_id | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "... | \n", + "Travel related to volunteering | \n", + "Travel related to volunteer activities, n.e.c.* | \n", + "Travel related to phone calls | \n", + "Security procedures related to traveling | \n", + "Traveling, n.e.c.* | \n", + "Insufficient detail in verbatim | \n", + "Missing travel or destination | \n", + "Respondent refused to provide information/\"none of your business\" | \n", + "Gap/can't remember | \n", + "Unable to code activity at 1st tier | \n", + "
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
2 | \n", + "20130101130123 | \n", + "10377056.507734 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
3 | \n", + "20130101130611 | \n", + "7731257.992805 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
4 | \n", + "20130101130616 | \n", + "4725269.227067 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
5 rows × 413 columns
\n", + "\n", + " | TUCASEID | \n", + "TULINENO | \n", + "TUYEAR | \n", + "TUMONTH | \n", + "TEABSRSN | \n", + "TEERN | \n", + "TEERNH1O | \n", + "TEERNH2 | \n", + "TEERNHRO | \n", + "TEERNHRY | \n", + "... | \n", + "TXSPEMPNOT | \n", + "TXSPUHRS | \n", + "TXTCC | \n", + "TXTCCTOT | \n", + "TXTCOC | \n", + "TXTHH | \n", + "TXTNOHH | \n", + "TXTO | \n", + "TXTOHH | \n", + "TXTONHH | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "
1 | \n", + "20130101130112 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "
2 | \n", + "20130101130123 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "
3 | \n", + "20130101130611 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "... | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "
4 | \n", + "20130101130616 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "... | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "
5 rows × 175 columns
\n", + "\n", + " | TUCASEID | \n", + "TUACTIVITY_N | \n", + "TEWHERE | \n", + "TRTCCTOT_LN | \n", + "TRTCC_LN | \n", + "TRTCOC_LN | \n", + "TRTEC_LN | \n", + "TRTHH_LN | \n", + "TRTNOHH_LN | \n", + "TRTOHH_LN | \n", + "... | \n", + "TUDURSTOP | \n", + "TUEC24 | \n", + "TUSTARTTIM | \n", + "TUSTOPTIME | \n", + "TUTIER1CODE | \n", + "TUTIER2CODE | \n", + "TUTIER3CODE | \n", + "TRCODE | \n", + "TRTIER2 | \n", + "TXWHERE | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "04:00:00 | \n", + "12:00:00 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "10101 | \n", + "101 | \n", + "0 | \n", + "
1 | \n", + "20130101130004 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "5 | \n", + "5 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:00:00 | \n", + "12:05:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
2 | \n", + "20130101130004 | \n", + "3 | \n", + "1 | \n", + "120 | \n", + "120 | \n", + "0 | \n", + "-1 | \n", + "120 | \n", + "120 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:05:00 | \n", + "14:05:00 | \n", + "12 | \n", + "3 | \n", + "3 | \n", + "120303 | \n", + "1203 | \n", + "0 | \n", + "
3 | \n", + "20130101130004 | \n", + "4 | \n", + "1 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "14:05:00 | \n", + "19:00:00 | \n", + "6 | \n", + "3 | \n", + "1 | \n", + "60301 | \n", + "603 | \n", + "0 | \n", + "
4 | \n", + "20130101130004 | \n", + "5 | \n", + "1 | \n", + "30 | \n", + "30 | \n", + "0 | \n", + "-1 | \n", + "30 | \n", + "30 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "19:00:00 | \n", + "19:30:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
5 rows × 31 columns
\n", + "\n", + " | TUCASEID | \n", + "TULINENO | \n", + "TUYEAR | \n", + "TUMONTH | \n", + "TEABSRSN | \n", + "TEERN | \n", + "TEERNH1O | \n", + "TEERNH2 | \n", + "TEERNHRO | \n", + "TEERNHRY | \n", + "... | \n", + "TUDURSTOP | \n", + "TUEC24 | \n", + "TUSTARTTIM | \n", + "TUSTOPTIME | \n", + "TUTIER1CODE | \n", + "TUTIER2CODE | \n", + "TUTIER3CODE | \n", + "TRCODE | \n", + "TRTIER2 | \n", + "TXWHERE | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "04:00:00 | \n", + "12:00:00 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "10101 | \n", + "101 | \n", + "0 | \n", + "
1 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:00:00 | \n", + "12:05:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
2 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:05:00 | \n", + "14:05:00 | \n", + "12 | \n", + "3 | \n", + "3 | \n", + "120303 | \n", + "1203 | \n", + "0 | \n", + "
3 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "14:05:00 | \n", + "19:00:00 | \n", + "6 | \n", + "3 | \n", + "1 | \n", + "60301 | \n", + "603 | \n", + "0 | \n", + "
4 | \n", + "20130101130004 | \n", + "1 | \n", + "2013 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "19:00:00 | \n", + "19:30:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
5 rows × 205 columns
\n", + "\n", + " | tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
2 | \n", + "20130101130123 | \n", + "10377056.507734 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
3 | \n", + "20130101130611 | \n", + "7731257.992805 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
4 | \n", + "20130101130616 | \n", + "4725269.227067 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
5 rows × 413 columns
\n", + "\n", + " | \n", + " | young | \n", + "middle | \n", + "old | \n", + "elderly | \n", + "
---|---|---|---|---|---|
TRYHHCHILD | \n", + "TEAGE | \n", + "-0.645934 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
PEEDUCA | \n", + "-0.554112 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
TEAGE | \n", + "TRYHHCHILD | \n", + "-0.645934 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
PEEDUCA | \n", + "0.769781 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
TESCHENR | \n", + "0.518341 | \n", + "NaN | \n", + "-0.830725 | \n", + "NaN | \n", + "|
PEEDUCA | \n", + "TRYHHCHILD | \n", + "-0.554112 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
TEAGE | \n", + "0.769781 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
TRERNWA | \n", + "0.519389 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
TELFS | \n", + "TEMJOT | \n", + "-0.969841 | \n", + "-0.960508 | \n", + "-0.970220 | \n", + "-0.988260 | \n", + "
TRDPFTPT | \n", + "-0.940963 | \n", + "-0.916558 | \n", + "-0.936548 | \n", + "-0.970697 | \n", + "|
TRERNWA | \n", + "-0.614540 | \n", + "-0.502659 | \n", + "-0.541707 | \n", + "-0.556962 | \n", + "|
TEHRUSLT | \n", + "-0.776334 | \n", + "-0.767314 | \n", + "-0.783603 | \n", + "-0.813304 | \n", + "|
t050101 | \n", + "-0.534875 | \n", + "NaN | \n", + "NaN | \n", + "-0.598549 | \n", + "|
TEMJOT | \n", + "TELFS | \n", + "-0.969841 | \n", + "-0.960508 | \n", + "-0.970220 | \n", + "-0.988260 | \n", + "
TRDPFTPT | \n", + "0.955957 | \n", + "0.915443 | \n", + "0.937018 | \n", + "0.974041 | \n", + "|
TRERNWA | \n", + "0.619727 | \n", + "0.506314 | \n", + "0.548419 | \n", + "0.553724 | \n", + "|
TEHRUSLT | \n", + "0.766786 | \n", + "0.745069 | \n", + "0.770710 | \n", + "0.810455 | \n", + "|
t050101 | \n", + "0.533608 | \n", + "NaN | \n", + "NaN | \n", + "0.589187 | \n", + "|
TRDPFTPT | \n", + "TELFS | \n", + "-0.940963 | \n", + "-0.916558 | \n", + "-0.936548 | \n", + "-0.970697 | \n", + "
TEMJOT | \n", + "0.955957 | \n", + "0.915443 | \n", + "0.937018 | \n", + "0.974041 | \n", + "|
TEHRUSLT | \n", + "0.640991 | \n", + "0.597472 | \n", + "0.651317 | \n", + "0.713157 | \n", + "|
TESCHENR | \n", + "TEAGE | \n", + "0.518341 | \n", + "NaN | \n", + "-0.830725 | \n", + "NaN | \n", + "
TESCHLVL | \n", + "-0.957168 | \n", + "-0.998743 | \n", + "NaN | \n", + "NaN | \n", + "|
TESCHLVL | \n", + "TESCHENR | \n", + "-0.957168 | \n", + "-0.998743 | \n", + "NaN | \n", + "NaN | \n", + "
TRSPPRES | \n", + "TESPEMPNOT | \n", + "-0.933811 | \n", + "-0.919513 | \n", + "-0.942587 | \n", + "-0.973212 | \n", + "
TRSPFTPT | \n", + "-0.826232 | \n", + "-0.713881 | \n", + "-0.677617 | \n", + "NaN | \n", + "|
TESPEMPNOT | \n", + "TRSPPRES | \n", + "-0.933811 | \n", + "-0.919513 | \n", + "-0.942587 | \n", + "-0.973212 | \n", + "
TRSPFTPT | \n", + "0.737312 | \n", + "0.518566 | \n", + "NaN | \n", + "NaN | \n", + "|
TRERNWA | \n", + "PEEDUCA | \n", + "0.519389 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
TELFS | \n", + "-0.614540 | \n", + "-0.502659 | \n", + "-0.541707 | \n", + "-0.556962 | \n", + "|
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
t180302 | \n", + "t030202 | \n", + "0.995887 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t150103 | \n", + "0.706817 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
t180303 | \n", + "t030302 | \n", + "0.768044 | \n", + "0.614898 | \n", + "0.795934 | \n", + "NaN | \n", + "
t030399 | \n", + "0.511574 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
t180305 | \n", + "t030503 | \n", + "0.544374 | \n", + "NaN | \n", + "0.573998 | \n", + "0.677446 | \n", + "
t180401 | \n", + "t040112 | \n", + "0.687961 | \n", + "0.665140 | \n", + "0.567383 | \n", + "0.568455 | \n", + "
t180402 | \n", + "t040201 | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180405 | \n", + "t040507 | \n", + "0.527021 | \n", + "0.684310 | \n", + "0.577531 | \n", + "NaN | \n", + "
t180501 | \n", + "t050101 | \n", + "0.622210 | \n", + "0.564704 | \n", + "0.608668 | \n", + "0.569880 | \n", + "
t180503 | \n", + "t050303 | \n", + "0.533301 | \n", + "NaN | \n", + "NaN | \n", + "0.659905 | \n", + "
t180504 | \n", + "t050403 | \n", + "0.656558 | \n", + "0.556218 | \n", + "NaN | \n", + "NaN | \n", + "
t180601 | \n", + "t060101 | \n", + "0.592609 | \n", + "0.622272 | \n", + "NaN | \n", + "NaN | \n", + "
t180602 | \n", + "t060202 | \n", + "0.647550 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180604 | \n", + "t060401 | \n", + "0.735603 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180699 | \n", + "t069999 | \n", + "0.744980 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180701 | \n", + "t070101 | \n", + "0.721018 | \n", + "0.713634 | \n", + "0.618945 | \n", + "0.649890 | \n", + "
t180703 | \n", + "t070103 | \n", + "0.602409 | \n", + "NaN | \n", + "0.543274 | \n", + "NaN | \n", + "
t180704 | \n", + "t070104 | \n", + "0.636859 | \n", + "0.586572 | \n", + "0.545787 | \n", + "0.627832 | \n", + "
t180799 | \n", + "t070201 | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180802 | \n", + "t010299 | \n", + "0.848694 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t180804 | \n", + "t080401 | \n", + "0.534241 | \n", + "0.659544 | \n", + "0.504454 | \n", + "0.550535 | \n", + "
t180805 | \n", + "t080501 | \n", + "0.591858 | \n", + "0.763118 | \n", + "0.700922 | \n", + "0.804227 | \n", + "
t180806 | \n", + "t080601 | \n", + "0.835212 | \n", + "0.533930 | \n", + "NaN | \n", + "0.706947 | \n", + "
t180899 | \n", + "t089999 | \n", + "0.999695 | \n", + "0.987416 | \n", + "NaN | \n", + "NaN | \n", + "
t180905 | \n", + "t090501 | \n", + "0.707283 | \n", + "0.637981 | \n", + "0.535145 | \n", + "NaN | \n", + "
t181001 | \n", + "t100103 | \n", + "0.559361 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t181202 | \n", + "t120201 | \n", + "0.528323 | \n", + "0.645162 | \n", + "0.644864 | \n", + "0.628333 | \n", + "
t181302 | \n", + "t130224 | \n", + "0.536871 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
t181401 | \n", + "t140101 | \n", + "0.649691 | \n", + "0.621934 | \n", + "0.618547 | \n", + "0.555856 | \n", + "
t020501_wtd | \n", + "t020501 | \n", + "0.776297 | \n", + "0.823752 | \n", + "0.788769 | \n", + "0.799383 | \n", + "
146 rows × 4 columns
\n", + "\n", + " | \n", + " | young | \n", + "middle | \n", + "old | \n", + "elderly | \n", + "
---|---|---|---|---|---|
youngest_child_age | \n", + "age_edited | \n", + "-0.645934 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
education_level | \n", + "-0.554112 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
age_edited | \n", + "youngest_child_age | \n", + "-0.645934 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
education_level | \n", + "0.769781 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
is_student | \n", + "0.518341 | \n", + "NaN | \n", + "-0.830725 | \n", + "NaN | \n", + "|
education_level | \n", + "youngest_child_age | \n", + "-0.554112 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
age_edited | \n", + "0.769781 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
weekly_earnings_main | \n", + "0.519389 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
employment_status | \n", + "has_multiple_jobs | \n", + "-0.969841 | \n", + "-0.960508 | \n", + "-0.970220 | \n", + "-0.988260 | \n", + "
work_status | \n", + "-0.940963 | \n", + "-0.916558 | \n", + "-0.936548 | \n", + "-0.970697 | \n", + "|
weekly_earnings_main | \n", + "-0.614540 | \n", + "-0.502659 | \n", + "-0.541707 | \n", + "-0.556962 | \n", + "|
weekly_hours_worked | \n", + "-0.776334 | \n", + "-0.767314 | \n", + "-0.783603 | \n", + "-0.813304 | \n", + "|
Work, main job | \n", + "-0.534875 | \n", + "NaN | \n", + "NaN | \n", + "-0.598549 | \n", + "|
has_multiple_jobs | \n", + "employment_status | \n", + "-0.969841 | \n", + "-0.960508 | \n", + "-0.970220 | \n", + "-0.988260 | \n", + "
work_status | \n", + "0.955957 | \n", + "0.915443 | \n", + "0.937018 | \n", + "0.974041 | \n", + "|
weekly_earnings_main | \n", + "0.619727 | \n", + "0.506314 | \n", + "0.548419 | \n", + "0.553724 | \n", + "|
weekly_hours_worked | \n", + "0.766786 | \n", + "0.745069 | \n", + "0.770710 | \n", + "0.810455 | \n", + "|
Work, main job | \n", + "0.533608 | \n", + "NaN | \n", + "NaN | \n", + "0.589187 | \n", + "|
work_status | \n", + "employment_status | \n", + "-0.940963 | \n", + "-0.916558 | \n", + "-0.936548 | \n", + "-0.970697 | \n", + "
has_multiple_jobs | \n", + "0.955957 | \n", + "0.915443 | \n", + "0.937018 | \n", + "0.974041 | \n", + "|
weekly_hours_worked | \n", + "0.640991 | \n", + "0.597472 | \n", + "0.651317 | \n", + "0.713157 | \n", + "|
is_student | \n", + "age_edited | \n", + "0.518341 | \n", + "NaN | \n", + "-0.830725 | \n", + "NaN | \n", + "
school_level | \n", + "-0.957168 | \n", + "-0.998743 | \n", + "NaN | \n", + "NaN | \n", + "|
school_level | \n", + "is_student | \n", + "-0.957168 | \n", + "-0.998743 | \n", + "NaN | \n", + "NaN | \n", + "
partner_present | \n", + "partner_employed | \n", + "-0.933811 | \n", + "-0.919513 | \n", + "-0.942587 | \n", + "-0.973212 | \n", + "
partner_work_status | \n", + "-0.826232 | \n", + "-0.713881 | \n", + "-0.677617 | \n", + "NaN | \n", + "|
partner_employed | \n", + "partner_present | \n", + "-0.933811 | \n", + "-0.919513 | \n", + "-0.942587 | \n", + "-0.973212 | \n", + "
partner_work_status | \n", + "0.737312 | \n", + "0.518566 | \n", + "NaN | \n", + "NaN | \n", + "|
weekly_earnings_main | \n", + "education_level | \n", + "0.519389 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
employment_status | \n", + "-0.614540 | \n", + "-0.502659 | \n", + "-0.541707 | \n", + "-0.556962 | \n", + "|
has_multiple_jobs | \n", + "0.619727 | \n", + "0.506314 | \n", + "0.548419 | \n", + "0.553724 | \n", + "|
weekly_hours_worked | \n", + "0.749890 | \n", + "0.574720 | \n", + "0.592020 | \n", + "0.653577 | \n", + "|
Work, main job | \n", + "0.515237 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
partner_work_status | \n", + "partner_present | \n", + "-0.826232 | \n", + "-0.713881 | \n", + "-0.677617 | \n", + "NaN | \n", + "
partner_employed | \n", + "0.737312 | \n", + "0.518566 | \n", + "NaN | \n", + "NaN | \n", + "|
weekly_hours_worked | \n", + "employment_status | \n", + "-0.776334 | \n", + "-0.767314 | \n", + "-0.783603 | \n", + "-0.813304 | \n", + "
has_multiple_jobs | \n", + "0.766786 | \n", + "0.745069 | \n", + "0.770710 | \n", + "0.810455 | \n", + "|
work_status | \n", + "0.640991 | \n", + "0.597472 | \n", + "0.651317 | \n", + "0.713157 | \n", + "|
weekly_earnings_main | \n", + "0.749890 | \n", + "0.574720 | \n", + "0.592020 | \n", + "0.653577 | \n", + "|
Work, main job | \n", + "0.608817 | \n", + "NaN | \n", + "NaN | \n", + "0.646698 | \n", + "|
eldercare_minutes | \n", + "Physical care for hh adults | \n", + "0.500188 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Providing medical care to hh adult | \n", + "0.694572 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
childcare_minutes | \n", + "Physical care for hh children | \n", + "0.507461 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Grooming, n.e.c.* | \n", + "Travel related to using financial services and banking | \n", + "0.848694 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Health-related self care | \n", + "Activities related to hh child's health, n.e.c.* | \n", + "0.675089 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Food presentation | \n", + "Research/homework for class for pers. interest | \n", + "0.937353 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Building and repairing furniture | \n", + "Looking after nonhh adult (as a primary activity) | \n", + "0.894354 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Lawn, garden, and houseplant care | \n", + "t020501_wtd | \n", + "0.776297 | \n", + "0.823752 | \n", + "0.788769 | \n", + "0.799383 | \n", + "
Vehicle repair and maintenance (by self) | \n", + "Travel related to vehicle care & maintenance (by self) | \n", + "0.724373 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Physical care for hh children | \n", + "childcare_minutes | \n", + "0.507461 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Meetings and school conferences (hh children) | \n", + "Reading | \n", + "0.768006 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to hh children's education | \n", + "0.995887 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Obtaining medical care for hh children | \n", + "Travel related to hh children's health | \n", + "0.768044 | \n", + "0.614898 | \n", + "0.795934 | \n", + "NaN | \n", + "
Waiting associated with hh children's health | \n", + "Waiting associated with shopping | \n", + "0.951121 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Attending/hosting social events, n.e.c.* | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Activities related to hh child's health, n.e.c.* | \n", + "Health-related self care | \n", + "0.675089 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to hh children's health | \n", + "0.511574 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Physical care for hh adults | \n", + "eldercare_minutes | \n", + "0.500188 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Providing medical care to hh adult | \n", + "0.666368 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Providing medical care to hh adult | \n", + "eldercare_minutes | \n", + "0.694572 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Physical care for hh adults | \n", + "0.666368 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Picking up/dropping off hh adult | \n", + "Travel related to helping hh adults | \n", + "0.544374 | \n", + "NaN | \n", + "0.573998 | \n", + "0.677446 | \n", + "
Physical care for nonhh children | \n", + "Playing with nonhh children, not sports | \n", + "0.595434 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Playing with nonhh children, not sports | \n", + "Physical care for nonhh children | \n", + "0.595434 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Talking with/listening to nonhh children | \n", + "Skiing, ice skating, snowboarding | \n", + "0.845042 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Attending nonhh children's events | \n", + "House & lawn maintenance & repair assistance for nonhh adults | \n", + "0.732082 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Dropping off/picking up nonhh children | \n", + "Travel related to caring for and helping nonhh children | \n", + "0.687961 | \n", + "0.665140 | \n", + "0.567383 | \n", + "0.568455 | \n", + "
Homework (nonhh children) | \n", + "Travel related to nonhh children's education | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Looking after nonhh adult (as a primary activity) | \n", + "Building and repairing furniture | \n", + "0.894354 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
House & lawn maintenance & repair assistance for nonhh adults | \n", + "Attending nonhh children's events | \n", + "0.732082 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Picking up/dropping off nonhh adult | \n", + "Travel related to helping nonhh adults | \n", + "0.527021 | \n", + "0.684310 | \n", + "0.577531 | \n", + "NaN | \n", + "
Work, main job | \n", + "employment_status | \n", + "-0.534875 | \n", + "NaN | \n", + "NaN | \n", + "-0.598549 | \n", + "
has_multiple_jobs | \n", + "0.533608 | \n", + "NaN | \n", + "NaN | \n", + "0.589187 | \n", + "|
weekly_earnings_main | \n", + "0.515237 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
weekly_hours_worked | \n", + "0.608817 | \n", + "NaN | \n", + "NaN | \n", + "0.646698 | \n", + "|
Travel related to working | \n", + "0.622210 | \n", + "0.564704 | \n", + "0.608668 | \n", + "0.569880 | \n", + "|
Income-generating performances | \n", + "Rollerblading | \n", + "0.599580 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Income-generating services | \n", + "Travel related to income-generating activities | \n", + "0.533301 | \n", + "NaN | \n", + "NaN | \n", + "0.659905 | \n", + "
Job interviewing | \n", + "Travel related to job search & interviewing | \n", + "0.656558 | \n", + "0.556218 | \n", + "NaN | \n", + "NaN | \n", + "
Taking class for degree, certification, or licensure | \n", + "Travel related to taking class | \n", + "0.592609 | \n", + "0.622272 | \n", + "NaN | \n", + "NaN | \n", + "
Extracurricular music & performance activities | \n", + "Travel related to extracurricular activities (ex. Sports) | \n", + "0.647550 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Research/homework for class for pers. interest | \n", + "Food presentation | \n", + "0.937353 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Administrative activities: class for degree, certification, or licensure | \n", + "Travel related to registration/administrative activities | \n", + "0.735603 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Education, n.e.c.* | \n", + "Travel related to education, n.e.c.* | \n", + "0.744980 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Grocery shopping | \n", + "Travel related to grocery shopping | \n", + "0.721018 | \n", + "0.713634 | \n", + "0.618945 | \n", + "0.649890 | \n", + "
Purchasing food (not groceries) | \n", + "Travel related to purchasing food (not groceries) | \n", + "0.602409 | \n", + "NaN | \n", + "0.543274 | \n", + "NaN | \n", + "
Shopping, except groceries, food and gas | \n", + "Travel related to shopping, ex groceries, food, and gas | \n", + "0.636859 | \n", + "0.586572 | \n", + "0.545787 | \n", + "0.627832 | \n", + "
Waiting associated with shopping | \n", + "Waiting associated with hh children's health | \n", + "0.951121 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Attending/hosting social events, n.e.c.* | \n", + "0.951121 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Comparison shopping | \n", + "Travel related to consumer purchases, n.e.c.* | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Using health and care services outside the home | \n", + "Travel related to using medical services | \n", + "0.534241 | \n", + "0.659544 | \n", + "0.504454 | \n", + "0.550535 | \n", + "
Using personal care services | \n", + "Travel related to using personal care services | \n", + "0.591858 | \n", + "0.763118 | \n", + "0.700922 | \n", + "0.804227 | \n", + "
Activities rel. to purchasing/selling real estate | \n", + "Travel related to using real estate services | \n", + "0.835212 | \n", + "0.533930 | \n", + "NaN | \n", + "0.706947 | \n", + "
Professional and personal services, n.e.c.* | \n", + "Travel rel. to using prof. & personal care services, n.e.c.* | \n", + "0.999695 | \n", + "0.987416 | \n", + "NaN | \n", + "NaN | \n", + "
Using vehicle maintenance or repair services | \n", + "Travel related to using vehicle maintenance & repair services | \n", + "0.707283 | \n", + "0.637981 | \n", + "0.535145 | \n", + "NaN | \n", + "
Obtaining licenses & paying fines, fees, taxes | \n", + "Travel related to using government services | \n", + "0.559361 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Attending or hosting parties/receptions/ceremonies | \n", + "Travel related to attending or hosting social events | \n", + "0.528323 | \n", + "0.645162 | \n", + "0.644864 | \n", + "0.628333 | \n", + "
Attending/hosting social events, n.e.c.* | \n", + "Waiting associated with hh children's health | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Waiting associated with shopping | \n", + "0.951121 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Rollerblading | \n", + "Income-generating performances | \n", + "0.599580 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Skiing, ice skating, snowboarding | \n", + "Talking with/listening to nonhh children | \n", + "0.845042 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Softball | \n", + "Telephone calls to/from government officials | \n", + "0.824115 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Watching hockey | \n", + "Watching racquet sports | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Organizing and preparing | \n", + "0.637140 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Watching racquet sports | \n", + "Watching hockey | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Organizing and preparing | \n", + "0.637140 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Watching soccer | \n", + "Travel related to attending sporting/recreational events | \n", + "0.536871 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Attending religious services | \n", + "Travel related to religious/spiritual practices | \n", + "0.649691 | \n", + "0.621934 | \n", + "0.618547 | \n", + "0.555856 | \n", + "
Organizing and preparing | \n", + "Watching hockey | \n", + "0.637140 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Watching racquet sports | \n", + "0.637140 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Reading | \n", + "Meetings and school conferences (hh children) | \n", + "0.768006 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Performing | \n", + "0.635722 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Travel related to hh children's education | \n", + "0.706817 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Performing | \n", + "Reading | \n", + "0.635722 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Telephone calls to/from government officials | \n", + "Softball | \n", + "0.824115 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to vehicle care & maintenance (by self) | \n", + "Vehicle repair and maintenance (by self) | \n", + "0.724373 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to hh children's education | \n", + "Meetings and school conferences (hh children) | \n", + "0.995887 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Reading | \n", + "0.706817 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Travel related to hh children's health | \n", + "Obtaining medical care for hh children | \n", + "0.768044 | \n", + "0.614898 | \n", + "0.795934 | \n", + "NaN | \n", + "
Activities related to hh child's health, n.e.c.* | \n", + "0.511574 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "|
Travel related to helping hh adults | \n", + "Picking up/dropping off hh adult | \n", + "0.544374 | \n", + "NaN | \n", + "0.573998 | \n", + "0.677446 | \n", + "
Travel related to caring for and helping nonhh children | \n", + "Dropping off/picking up nonhh children | \n", + "0.687961 | \n", + "0.665140 | \n", + "0.567383 | \n", + "0.568455 | \n", + "
Travel related to nonhh children's education | \n", + "Homework (nonhh children) | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to helping nonhh adults | \n", + "Picking up/dropping off nonhh adult | \n", + "0.527021 | \n", + "0.684310 | \n", + "0.577531 | \n", + "NaN | \n", + "
Travel related to working | \n", + "Work, main job | \n", + "0.622210 | \n", + "0.564704 | \n", + "0.608668 | \n", + "0.569880 | \n", + "
Travel related to income-generating activities | \n", + "Income-generating services | \n", + "0.533301 | \n", + "NaN | \n", + "NaN | \n", + "0.659905 | \n", + "
Travel related to job search & interviewing | \n", + "Job interviewing | \n", + "0.656558 | \n", + "0.556218 | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to taking class | \n", + "Taking class for degree, certification, or licensure | \n", + "0.592609 | \n", + "0.622272 | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to extracurricular activities (ex. Sports) | \n", + "Extracurricular music & performance activities | \n", + "0.647550 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to registration/administrative activities | \n", + "Administrative activities: class for degree, certification, or licensure | \n", + "0.735603 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to education, n.e.c.* | \n", + "Education, n.e.c.* | \n", + "0.744980 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to grocery shopping | \n", + "Grocery shopping | \n", + "0.721018 | \n", + "0.713634 | \n", + "0.618945 | \n", + "0.649890 | \n", + "
Travel related to purchasing food (not groceries) | \n", + "Purchasing food (not groceries) | \n", + "0.602409 | \n", + "NaN | \n", + "0.543274 | \n", + "NaN | \n", + "
Travel related to shopping, ex groceries, food, and gas | \n", + "Shopping, except groceries, food and gas | \n", + "0.636859 | \n", + "0.586572 | \n", + "0.545787 | \n", + "0.627832 | \n", + "
Travel related to consumer purchases, n.e.c.* | \n", + "Comparison shopping | \n", + "1.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to using financial services and banking | \n", + "Grooming, n.e.c.* | \n", + "0.848694 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to using medical services | \n", + "Using health and care services outside the home | \n", + "0.534241 | \n", + "0.659544 | \n", + "0.504454 | \n", + "0.550535 | \n", + "
Travel related to using personal care services | \n", + "Using personal care services | \n", + "0.591858 | \n", + "0.763118 | \n", + "0.700922 | \n", + "0.804227 | \n", + "
Travel related to using real estate services | \n", + "Activities rel. to purchasing/selling real estate | \n", + "0.835212 | \n", + "0.533930 | \n", + "NaN | \n", + "0.706947 | \n", + "
Travel rel. to using prof. & personal care services, n.e.c.* | \n", + "Professional and personal services, n.e.c.* | \n", + "0.999695 | \n", + "0.987416 | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to using vehicle maintenance & repair services | \n", + "Using vehicle maintenance or repair services | \n", + "0.707283 | \n", + "0.637981 | \n", + "0.535145 | \n", + "NaN | \n", + "
Travel related to using government services | \n", + "Obtaining licenses & paying fines, fees, taxes | \n", + "0.559361 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to attending or hosting social events | \n", + "Attending or hosting parties/receptions/ceremonies | \n", + "0.528323 | \n", + "0.645162 | \n", + "0.644864 | \n", + "0.628333 | \n", + "
Travel related to attending sporting/recreational events | \n", + "Watching soccer | \n", + "0.536871 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
Travel related to religious/spiritual practices | \n", + "Attending religious services | \n", + "0.649691 | \n", + "0.621934 | \n", + "0.618547 | \n", + "0.555856 | \n", + "
t020501_wtd | \n", + "Lawn, garden, and houseplant care | \n", + "0.776297 | \n", + "0.823752 | \n", + "0.788769 | \n", + "0.799383 | \n", + "
\n", + " | hours | \n", + "activity | \n", + "description | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "has_multiple_jobs | \n", + "work_status | \n", + "is_student | \n", + "school_level | \n", + "partner_present | \n", + "partner_employed | \n", + "weekly_earnings_main | \n", + "household_children | \n", + "partner_work_status | \n", + "weekly_hours_worked | \n", + "date | \n", + "is_holiday | \n", + "eldercare_minutes | \n", + "childcare_minutes | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tucaseid | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
20131110131406 | \n", + "23.550000 | \n", + "t010101 | \n", + "Sleeping | \n", + "1899058.155655 | \n", + "-1 | \n", + "52 | \n", + "2 | \n", + "39 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "48000 | \n", + "0 | \n", + "-1 | \n", + "40 | \n", + "7 | \n", + "0 | \n", + "27 | \n", + "0 | \n", + "
20130807132371 | \n", + "22.500000 | \n", + "t050101 | \n", + "Work, main job | \n", + "3107214.726310 | \n", + "9 | \n", + "47 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "192307 | \n", + "2 | \n", + "1 | \n", + "45 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130807132365 | \n", + "22.000000 | \n", + "t500101 | \n", + "Insufficient detail in verbatim | \n", + "3345022.104425 | \n", + "2 | \n", + "32 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "2 | \n", + "288461 | \n", + "2 | \n", + "-1 | \n", + "99 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131009131778 | \n", + "21.816667 | \n", + "t120303 | \n", + "Television and movies (not religious) | \n", + "3495526.270281 | \n", + "-1 | \n", + "63 | \n", + "1 | \n", + "38 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130605131901 | \n", + "21.050000 | \n", + "t120312 | \n", + "Reading for personal interest | \n", + "2218752.415573 | \n", + "-1 | \n", + "85 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201131342 | \n", + "20.500000 | \n", + "t030401 | \n", + "Physical care for hh adults | \n", + "4884344.681430 | \n", + "-1 | \n", + "58 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "76923 | \n", + "0 | \n", + "-1 | \n", + "12 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130212121071 | \n", + "19.716667 | \n", + "t120301 | \n", + "Relaxing, thinking | \n", + "6002226.550923 | \n", + "-1 | \n", + "80 | \n", + "1 | \n", + "38 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130302130037 | \n", + "19.583333 | \n", + "t020103 | \n", + "Sewing, repairing, & maintaining textiles | \n", + "1940694.543983 | \n", + "-1 | \n", + "65 | \n", + "2 | \n", + "36 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "10000 | \n", + "0 | \n", + "-1 | \n", + "10 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "
20130908131014 | \n", + "19.000000 | \n", + "t030101 | \n", + "Physical care for hh children | \n", + "7872288.902837 | \n", + "0 | \n", + "30 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "30000 | \n", + "1 | \n", + "1 | \n", + "15 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130706131713 | \n", + "18.750000 | \n", + "t130199 | \n", + "Playing sports n.e.c.* | \n", + "7485472.098981 | \n", + "-1 | \n", + "55 | \n", + "1 | \n", + "38 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "5 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "
20130403131399 | \n", + "18.416667 | \n", + "t010301 | \n", + "Health-related self care | \n", + "8839255.028166 | \n", + "-1 | \n", + "80 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130604130545 | \n", + "17.583333 | \n", + "t070104 | \n", + "Shopping, except groceries, food and gas | \n", + "2038913.610811 | \n", + "12 | \n", + "46 | \n", + "2 | \n", + "42 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "57142 | \n", + "1 | \n", + "-1 | \n", + "45 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "75 | \n", + "
20130403131858 | \n", + "17.000000 | \n", + "t120307 | \n", + "Playing games | \n", + "3191214.755998 | \n", + "-1 | \n", + "28 | \n", + "1 | \n", + "39 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "150000 | \n", + "0 | \n", + "-1 | \n", + "60 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131211131300 | \n", + "16.933333 | \n", + "t120305 | \n", + "Listening to the radio | \n", + "1915241.746123 | \n", + "-1 | \n", + "60 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131211131300 | \n", + "0.066667 | \n", + "t150601 | \n", + "Public health activities | \n", + "1915241.746123 | \n", + "-1 | \n", + "60 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131110131694 | \n", + "16.750000 | \n", + "t060101 | \n", + "Taking class for degree, certification, or lic... | \n", + "26871359.803496 | \n", + "12 | \n", + "15 | \n", + "2 | \n", + "34 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130112121415 | \n", + "16.500000 | \n", + "t020101 | \n", + "Interior cleaning | \n", + "6238249.010562 | \n", + "10 | \n", + "32 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "21750 | \n", + "2 | \n", + "-1 | \n", + "30 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "180 | \n", + "
20131211132249 | \n", + "16.000000 | \n", + "t010399 | \n", + "Self care, n.e.c.* | \n", + "3282957.837097 | \n", + "-1 | \n", + "64 | \n", + "2 | \n", + "42 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131211131942 | \n", + "15.850000 | \n", + "t020201 | \n", + "Food and drink preparation | \n", + "1902597.351244 | \n", + "-1 | \n", + "28 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "31500 | \n", + "0 | \n", + "-1 | \n", + "48 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201130802 | \n", + "15.833333 | \n", + "t150102 | \n", + "Organizing and preparing | \n", + "3980693.284825 | \n", + "-1 | \n", + "77 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "6 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130706131778 | \n", + "15.733333 | \n", + "t120101 | \n", + "Socializing and communicating with others | \n", + "5702587.373597 | \n", + "-1 | \n", + "58 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130806132256 | \n", + "15.383333 | \n", + "t120308 | \n", + "Computer use for leisure (excluding games) | \n", + "13578396.312247 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201132095 | \n", + "14.816667 | \n", + "t020902 | \n", + "Household & personal organization and planning | \n", + "3389939.986427 | \n", + "4 | \n", + "16 | \n", + "2 | \n", + "34 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "415 | \n", + "
20131110132043 | \n", + "14.750000 | \n", + "t189999 | \n", + "Traveling, n.e.c.* | \n", + "17423300.301744 | \n", + "-1 | \n", + "63 | \n", + "1 | \n", + "33 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "5 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
20130112120789 | \n", + "14.566667 | \n", + "t150203 | \n", + "Providing care | \n", + "14552721.094199 | \n", + "-1 | \n", + "76 | \n", + "2 | \n", + "44 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201130129 | \n", + "14.333333 | \n", + "t159999 | \n", + "Volunteer activities, n.e.c.* | \n", + "2715144.531873 | \n", + "-1 | \n", + "52 | \n", + "1 | \n", + "46 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "111900 | \n", + "0 | \n", + "-1 | \n", + "-4 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130504132097 | \n", + "14.333333 | \n", + "t040101 | \n", + "Physical care for nonhh children | \n", + "2073978.589674 | \n", + "12 | \n", + "52 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "115300 | \n", + "1 | \n", + "-1 | \n", + "55 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130504132097 | \n", + "6.500000 | \n", + "t040404 | \n", + "Obtaining medical and care services for nonhh ... | \n", + "2073978.589674 | \n", + "12 | \n", + "52 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "115300 | \n", + "1 | \n", + "-1 | \n", + "55 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130302132521 | \n", + "14.200000 | \n", + "t060301 | \n", + "Research/homework for class for degree, certif... | \n", + "46006353.688769 | \n", + "-1 | \n", + "22 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "3 | \n", + "-1 | \n", + "8571 | \n", + "0 | \n", + "-1 | \n", + "9 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130403131670 | \n", + "14.166667 | \n", + "t120311 | \n", + "Hobbies, except arts & crafts and collecting | \n", + "2559083.853186 | \n", + "-1 | \n", + "22 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "3 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "68000 | \n", + "0 | \n", + "-1 | \n", + "40 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
20131210131829 | \n", + "0.333333 | \n", + "t160107 | \n", + "Telephone calls to/from paid child or adult ca... | \n", + "2871970.895559 | \n", + "9 | \n", + "49 | \n", + "2 | \n", + "42 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "3 | \n", + "-1 | \n", + "103846 | \n", + "1 | \n", + "-1 | \n", + "40 | \n", + "4 | \n", + "0 | \n", + "60 | \n", + "65 | \n", + "
20131110131930 | \n", + "0.333333 | \n", + "t060303 | \n", + "Waiting associated with research/homework | \n", + "9500611.990471 | \n", + "16 | \n", + "25 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "3 | \n", + "-1 | \n", + "9975 | \n", + "1 | \n", + "-1 | \n", + "5 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130403130796 | \n", + "1.500000 | \n", + "t180903 | \n", + "Travel related to using pet services (not vet) | \n", + "4235328.586248 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "44 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "288461 | \n", + "0 | \n", + "-1 | \n", + "60 | \n", + "6 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130403130796 | \n", + "0.333333 | \n", + "t090101 | \n", + "Using interior cleaning services | \n", + "4235328.586248 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "44 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "288461 | \n", + "0 | \n", + "-1 | \n", + "60 | \n", + "6 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130504132366 | \n", + "0.333333 | \n", + "t150701 | \n", + "Waiting associated with volunteer activities | \n", + "14131720.519715 | \n", + "-1 | \n", + "66 | \n", + "2 | \n", + "44 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "30 | \n", + "2 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131009131278 | \n", + "0.333333 | \n", + "t090302 | \n", + "Waiting associated with pet services | \n", + "4984326.264564 | \n", + "-1 | \n", + "53 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "46410 | \n", + "0 | \n", + "-1 | \n", + "39 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131110130805 | \n", + "0.283333 | \n", + "t050305 | \n", + "Waiting associated with other income-generatin... | \n", + "7390671.525680 | \n", + "3 | \n", + "45 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "90000 | \n", + "3 | \n", + "1 | \n", + "-4 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "757 | \n", + "
20131110130969 | \n", + "0.250000 | \n", + "t020199 | \n", + "Housework, n.e.c.* | \n", + "6242469.760241 | \n", + "17 | \n", + "17 | \n", + "1 | \n", + "36 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "40000 | \n", + "1 | \n", + "-1 | \n", + "40 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130112121798 | \n", + "0.250000 | \n", + "t180803 | \n", + "Travel related to using legal services | \n", + "1869970.804282 | \n", + "10 | \n", + "67 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "6 | \n", + "0 | \n", + "-1 | \n", + "325 | \n", + "
20130807130649 | \n", + "5.083333 | \n", + "t181001 | \n", + "Travel related to using government services | \n", + "9421010.311665 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "43 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "77400 | \n", + "0 | \n", + "-1 | \n", + "42 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130807130649 | \n", + "2.583333 | \n", + "t100304 | \n", + "Waiting associated with using government services | \n", + "9421010.311665 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "43 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "77400 | \n", + "0 | \n", + "-1 | \n", + "42 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130807130649 | \n", + "0.250000 | \n", + "t050103 | \n", + "Security procedures related to work | \n", + "9421010.311665 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "43 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "77400 | \n", + "0 | \n", + "-1 | \n", + "42 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130202130683 | \n", + "0.250000 | \n", + "t100499 | \n", + "Security procedures rel. to govt svcs/civic ob... | \n", + "1642369.769691 | \n", + "-1 | \n", + "67 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130403130984 | \n", + "0.250000 | \n", + "t090499 | \n", + "Using lawn and garden services, n.e.c.* | \n", + "7896147.268803 | \n", + "-1 | \n", + "80 | \n", + "1 | \n", + "35 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130706132501 | \n", + "0.200000 | \n", + "t090599 | \n", + "Using vehicle maint. & repair svcs, n.e.c.* | \n", + "4245246.595794 | \n", + "7 | \n", + "27 | \n", + "2 | \n", + "42 | \n", + "4 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "427 | \n", + "
20130201130744 | \n", + "1.450000 | \n", + "t040111 | \n", + "Waiting for/with nonhh children | \n", + "3177632.829933 | \n", + "-1 | \n", + "64 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201130744 | \n", + "0.166667 | \n", + "t180402 | \n", + "Travel related to nonhh children's education | \n", + "3177632.829933 | \n", + "-1 | \n", + "64 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130605131428 | \n", + "0.166667 | \n", + "t050404 | \n", + "Waiting associated with job search or interview | \n", + "9452009.625145 | \n", + "15 | \n", + "53 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "2 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130505131591 | \n", + "0.166667 | \n", + "t059999 | \n", + "Work and work-related activities, n.e.c.* | \n", + "3495583.515790 | \n", + "0 | \n", + "31 | \n", + "2 | \n", + "41 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "63000 | \n", + "1 | \n", + "-1 | \n", + "45 | \n", + "6 | \n", + "0 | \n", + "20 | \n", + "383 | \n", + "
20130808131096 | \n", + "0.166667 | \n", + "t109999 | \n", + "Government services, n.e.c.* | \n", + "13756093.183301 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130808131096 | \n", + "0.133333 | \n", + "t181099 | \n", + "Travel rel. to govt svcs & civic obligations, ... | \n", + "13756093.183301 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130201131164 | \n", + "0.166667 | \n", + "t180299 | \n", + "Travel related to household activities, n.e.c.* | \n", + "1773385.359576 | \n", + "13 | \n", + "53 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "1 | \n", + "2 | \n", + "-4 | \n", + "1 | \n", + "0 | \n", + "60 | \n", + "0 | \n", + "
20130505131301 | \n", + "0.166667 | \n", + "t040299 | \n", + "Activities related to nonhh child's educ., n.e... | \n", + "11266272.453537 | \n", + "15 | \n", + "57 | \n", + "2 | \n", + "39 | \n", + "2 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "24000 | \n", + "1 | \n", + "-1 | \n", + "30 | \n", + "4 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130303132032 | \n", + "0.166667 | \n", + "t150699 | \n", + "Public health & safety activities, n.e.c.* | \n", + "4842317.362881 | \n", + "11 | \n", + "44 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "150000 | \n", + "1 | \n", + "1 | \n", + "60 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "45 | \n", + "
20130808131096 | \n", + "0.166667 | \n", + "t109999 | \n", + "Government services, n.e.c.* | \n", + "13756093.183301 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130808131096 | \n", + "0.133333 | \n", + "t181099 | \n", + "Travel rel. to govt svcs & civic obligations, ... | \n", + "13756093.183301 | \n", + "-1 | \n", + "56 | \n", + "2 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131110131724 | \n", + "0.083333 | \n", + "t169999 | \n", + "Telephone calls, n.e.c.* | \n", + "3648438.241690 | \n", + "-1 | \n", + "27 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20130806132070 | \n", + "0.083333 | \n", + "t020299 | \n", + "Food & drink prep, presentation, & clean-up, n... | \n", + "20897582.715362 | \n", + "5 | \n", + "42 | \n", + "1 | \n", + "33 | \n", + "7 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "-1 | \n", + "46 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "830 | \n", + "
20131211131300 | \n", + "16.933333 | \n", + "t120305 | \n", + "Listening to the radio | \n", + "1915241.746123 | \n", + "-1 | \n", + "60 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
20131211131300 | \n", + "0.066667 | \n", + "t150601 | \n", + "Public health activities | \n", + "1915241.746123 | \n", + "-1 | \n", + "60 | \n", + "1 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "7 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "
425 rows × 26 columns
\n", + "\n", + " | TUACTIVITY_N | \n", + "TEWHERE | \n", + "TRTCCTOT_LN | \n", + "TRTCC_LN | \n", + "TRTCOC_LN | \n", + "TRTEC_LN | \n", + "TRTHH_LN | \n", + "TRTNOHH_LN | \n", + "TRTOHH_LN | \n", + "TRTONHH_LN | \n", + "TRTO_LN | \n", + "TRWBELIG | \n", + "TUACTDUR | \n", + "TUACTDUR24 | \n", + "TUCC5 | \n", + "TUCC5B | \n", + "TUCC7 | \n", + "TUCC8 | \n", + "TUCUMDUR | \n", + "TUCUMDUR24 | \n", + "TUDURSTOP | \n", + "TUEC24 | \n", + "TUSTARTTIM | \n", + "TUSTOPTIME | \n", + "TUTIER1CODE | \n", + "TUTIER2CODE | \n", + "TUTIER3CODE | \n", + "TRCODE | \n", + "TRTIER2 | \n", + "TXWHERE | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TUCASEID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
20130201130802 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "90 | \n", + "90 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "97 | \n", + "90 | \n", + "90 | \n", + "2 | \n", + "-1 | \n", + "04:00:00 | \n", + "05:30:00 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "10101 | \n", + "101 | \n", + "0 | \n", + "
20130201130802 | \n", + "2 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "390 | \n", + "390 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "480 | \n", + "480 | \n", + "2 | \n", + "-1 | \n", + "05:30:00 | \n", + "12:00:00 | \n", + "15 | \n", + "1 | \n", + "2 | \n", + "150102 | \n", + "1501 | \n", + "0 | \n", + "
20130201130802 | \n", + "3 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "20 | \n", + "20 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "500 | \n", + "500 | \n", + "1 | \n", + "-1 | \n", + "12:00:00 | \n", + "12:20:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
20130201130802 | \n", + "4 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "370 | \n", + "370 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "870 | \n", + "870 | \n", + "2 | \n", + "-1 | \n", + "12:20:00 | \n", + "18:30:00 | \n", + "15 | \n", + "1 | \n", + "2 | \n", + "150102 | \n", + "1501 | \n", + "0 | \n", + "
20130201130802 | \n", + "5 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "20 | \n", + "20 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "890 | \n", + "890 | \n", + "1 | \n", + "-1 | \n", + "18:30:00 | \n", + "18:50:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
20130201130802 | \n", + "6 | \n", + "1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "1 | \n", + "190 | \n", + "190 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "1080 | \n", + "1080 | \n", + "2 | \n", + "-1 | \n", + "18:50:00 | \n", + "22:00:00 | \n", + "15 | \n", + "1 | \n", + "2 | \n", + "150102 | \n", + "1501 | \n", + "0 | \n", + "
20130201130802 | \n", + "7 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "0 | \n", + "450 | \n", + "360 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "1530 | \n", + "1440 | \n", + "2 | \n", + "-1 | \n", + "22:00:00 | \n", + "05:30:00 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "10101 | \n", + "101 | \n", + "0 | \n", + "
\n", + " | hours | \n", + "activity | \n", + "description | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "has_multiple_jobs | \n", + "work_status | \n", + "is_student | \n", + "school_level | \n", + "partner_present | \n", + "partner_employed | \n", + "weekly_earnings_main | \n", + "household_children | \n", + "partner_work_status | \n", + "weekly_hours_worked | \n", + "date | \n", + "is_holiday | \n", + "eldercare_minutes | \n", + "childcare_minutes | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tucaseid | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
20130807132318 | \n", + "2.75 | \n", + "t500105 | \n", + "Respondent refused to provide information/\"non... | \n", + "10910565.622416 | \n", + "2 | \n", + "29 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "53846 | \n", + "1 | \n", + "2 | \n", + "40 | \n", + "3 | \n", + "0 | \n", + "-1 | \n", + "465 | \n", + "
\n", + " | 20130807132318 | \n", + "
---|---|
Sleeping | \n", + "6.500000 | \n", + "
Work, main job | \n", + "8.000000 | \n", + "
Shopping, except groceries, food and gas | \n", + "1.500000 | \n", + "
Eating and drinking | \n", + "0.666667 | \n", + "
Relaxing, thinking | \n", + "2.916667 | \n", + "
Travel related to working | \n", + "1.083333 | \n", + "
Travel related to shopping, ex groceries, food, and gas | \n", + "0.583333 | \n", + "
Respondent refused to provide information/\"none of your business\" | \n", + "2.750000 | \n", + "
\n", + " | hours | \n", + "activity | \n", + "description | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "has_multiple_jobs | \n", + "work_status | \n", + "is_student | \n", + "school_level | \n", + "partner_present | \n", + "partner_employed | \n", + "weekly_earnings_main | \n", + "household_children | \n", + "partner_work_status | \n", + "weekly_hours_worked | \n", + "date | \n", + "is_holiday | \n", + "eldercare_minutes | \n", + "childcare_minutes | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tucaseid | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
20131109132113 | \n", + "9.75 | \n", + "t010102 | \n", + "Sleeplessness | \n", + "14290010.243587 | \n", + "3 | \n", + "39 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "-1 | \n", + "-1 | \n", + "2 | \n", + "-1 | \n", + "1 | \n", + "1 | \n", + "-1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "2 | \n", + "0 | \n", + "-1 | \n", + "375 | \n", + "
\n", + " | 20131109132113 | \n", + "
---|---|
Sleeping | \n", + "1.000000 | \n", + "
Sleeplessness | \n", + "9.750000 | \n", + "
Washing, dressing and grooming oneself | \n", + "0.833333 | \n", + "
Looking after hh children (as a primary activity) | \n", + "0.166667 | \n", + "
Shopping, except groceries, food and gas | \n", + "0.250000 | \n", + "
Eating and drinking | \n", + "2.000000 | \n", + "
Socializing and communicating with others | \n", + "1.750000 | \n", + "
Relaxing, thinking | \n", + "4.500000 | \n", + "
Television and movies (not religious) | \n", + "2.250000 | \n", + "
Travel related to shopping, ex groceries, food, and gas | \n", + "0.500000 | \n", + "
Gap/can't remember | \n", + "1.000000 | \n", + "
5 rows × 413 columns
\n", "" ], "text/plain": [ - " weight minutes\n", - "2 10377056.507734 60\n", - "3 7731257.992805 65\n", - "4 4725269.227067 90\n", - "5 2372791.046351 270\n", - "6 5671341.270490 244" + " tucaseid TUFINLWGT TRYHHCHILD TEAGE TESEX PEEDUCA \\\n", + "0 20130101130004 11899905.662034 12 22 2 40 \n", + "1 20130101130112 4447638.009513 1 39 1 43 \n", + "2 20130101130123 10377056.507734 -1 47 2 40 \n", + "3 20130101130611 7731257.992805 -1 50 2 40 \n", + "4 20130101130616 4725269.227067 -1 45 2 40 \n", + "\n", + " PTDTRACE PEHSPNON GTMETSTA TELFS ... t181501 t181599 t181601 \\\n", + "0 8 2 1 5 ... 0 0 0 \n", + "1 1 2 1 1 ... 0 0 0 \n", + "2 1 2 1 4 ... 25 0 0 \n", + "3 1 1 1 1 ... 0 0 0 \n", + "4 2 2 1 1 ... 0 0 0 \n", + "\n", + " t181801 t189999 t500101 t500103 t500105 t500106 t500107 \n", + "0 0 0 0 0 0 0 0 \n", + "1 0 0 0 0 0 0 0 \n", + "2 0 0 0 0 0 0 0 \n", + "3 0 0 0 0 0 0 0 \n", + "4 0 0 0 0 0 0 0 \n", + "\n", + "[5 rows x 413 columns]" ] }, - "execution_count": 37, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "data = adults_with_no_children[['TUFINLWGT', 't120303']]\n", - "data = data.rename(columns={\"TUFINLWGT\": \"weight\", \"t120303\": \"minutes\"})\n", - "data.head()" + "summary.head()" ] }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 10, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['atus_case_id',\n", + " 'atus_final_weight',\n", + " 'youngest_child_age',\n", + " 'age_edited',\n", + " 'gender',\n", + " 'education_level',\n", + " 'race',\n", + " 'is_hispanic',\n", + " 'metropolitan_status',\n", + " 'employment_status',\n", + " 'has_multiple_jobs',\n", + " 'work_status',\n", + " 'is_student',\n", + " 'school_level',\n", + " 'partner_present',\n", + " 'partner_employed',\n", + " 'weekly_earnings_main',\n", + " 'household_children',\n", + " 'partner_work_status',\n", + " 'weekly_hours_worked',\n", + " 'date',\n", + " 'is_holiday',\n", + " 'eldercare_minutes',\n", + " 'childcare_minutes',\n", + " 'Sleeping',\n", + " 'Sleeplessness',\n", + " 'Washing, dressing and grooming oneself',\n", + " 'Grooming, n.e.c.*',\n", + " 'Health-related self care',\n", + " 'Self care, n.e.c.*',\n", + " 'Personal/Private activities',\n", + " 'Interior cleaning',\n", + " 'Laundry',\n", + " 'Sewing, repairing, & maintaining textiles',\n", + " 'Storing interior hh items, inc. food',\n", + " 'Housework, n.e.c.*',\n", + " 'Food and drink preparation',\n", + " 'Food presentation',\n", + " 'Kitchen and food clean-up',\n", + " 'Food & drink prep, presentation, & clean-up, n.e.c.*',\n", + " 'Interior arrangement, decoration, & repairs',\n", + " 'Building and repairing furniture',\n", + " 'Heating and cooling',\n", + " 'Interior maintenance, repair, & decoration, n.e.c.*',\n", + " 'Exterior cleaning',\n", + " 'Exterior repair, improvements, & decoration',\n", + " 'Exterior maintenance, repair & decoration, n.e.c.*',\n", + " 'Lawn, garden, and houseplant care',\n", + " 'Ponds, pools, and hot tubs',\n", + " 'Lawn and garden, n.e.c.*',\n", + " 'Care for animals and pets (not veterinary care)',\n", + " 'Walking / exercising / playing with animals',\n", + " 'Pet and animal care, n.e.c.*',\n", + " 'Vehicle repair and maintenance (by self)',\n", + " 'Vehicles, n.e.c.*',\n", + " 'Appliance, tool, and toy set-up, repair, & maintenance (by self)',\n", + " 'Appliances and tools, n.e.c.*',\n", + " 'Financial management',\n", + " 'Household & personal organization and planning',\n", + " 'HH & personal mail & messages (except e-mail)',\n", + " 'HH & personal e-mail and messages',\n", + " 'Home security',\n", + " 'Household management, n.e.c.*',\n", + " 'Household activities, n.e.c.*',\n", + " 'Physical care for hh children',\n", + " 'Reading to/with hh children',\n", + " 'Playing with hh children, not sports',\n", + " 'Arts and crafts with hh children',\n", + " 'Playing sports with hh children',\n", + " 'Talking with/listening to hh children',\n", + " 'Organization & planning for hh children',\n", + " 'Looking after hh children (as a primary activity)',\n", + " \"Attending hh children's events\",\n", + " 'Waiting for/with hh children',\n", + " 'Picking up/dropping off hh children',\n", + " 'Caring for & helping hh children, n.e.c.*',\n", + " 'Homework (hh children)',\n", + " 'Meetings and school conferences (hh children)',\n", + " 'Home schooling of hh children',\n", + " \"Activities related to hh child's education, n.e.c.*\",\n", + " 'Providing medical care to hh children',\n", + " 'Obtaining medical care for hh children',\n", + " \"Waiting associated with hh children's health\",\n", + " \"Activities related to hh child's health, n.e.c.*\",\n", + " 'Physical care for hh adults',\n", + " 'Looking after hh adult (as a primary activity)',\n", + " 'Providing medical care to hh adult',\n", + " 'Obtaining medical and care services for hh adult',\n", + " 'Waiting associated with caring for household adults',\n", + " 'Caring for household adults, n.e.c.*',\n", + " 'Helping hh adults',\n", + " 'Organization & planning for hh adults',\n", + " 'Picking up/dropping off hh adult',\n", + " 'Waiting associated with helping hh adults',\n", + " 'Helping household adults, n.e.c.*',\n", + " 'Caring for & helping hh members, n.e.c.*',\n", + " 'Physical care for nonhh children',\n", + " 'Reading to/with nonhh children',\n", + " 'Playing with nonhh children, not sports',\n", + " 'Arts and crafts with nonhh children',\n", + " 'Playing sports with nonhh children',\n", + " 'Talking with/listening to nonhh children',\n", + " 'Organization & planning for nonhh children',\n", + " 'Looking after nonhh children (as primary activity)',\n", + " \"Attending nonhh children's events\",\n", + " 'Waiting for/with nonhh children',\n", + " 'Dropping off/picking up nonhh children',\n", + " 'Caring for and helping nonhh children, n.e.c.*',\n", + " 'Homework (nonhh children)',\n", + " \"Activities related to nonhh child's educ., n.e.c.*\",\n", + " 'Providing medical care to nonhh children',\n", + " 'Obtaining medical care for nonhh children',\n", + " 'Physical care for nonhh adults',\n", + " 'Looking after nonhh adult (as a primary activity)',\n", + " 'Providing medical care to nonhh adult',\n", + " 'Obtaining medical and care services for nonhh adult',\n", + " 'Waiting associated with caring for nonhh adults',\n", + " 'Caring for nonhh adults, n.e.c.*',\n", + " 'Housework, cooking, & shopping assistance for nonhh adults',\n", + " 'House & lawn maintenance & repair assistance for nonhh adults',\n", + " 'Animal & pet care assistance for nonhh adults',\n", + " 'Vehicle & appliance maintenance/repair assistance for nonhh adults',\n", + " 'Financial management assistance for nonhh adults',\n", + " 'Household management & paperwork assistance for nonhh adults',\n", + " 'Picking up/dropping off nonhh adult',\n", + " 'Waiting associated with helping nonhh adults',\n", + " 'Helping nonhh adults, n.e.c.*',\n", + " 'Work, main job',\n", + " 'Work, other job(s)',\n", + " 'Security procedures related to work',\n", + " 'Waiting associated with working',\n", + " 'Working, n.e.c.*',\n", + " 'Socializing, relaxing, and leisure as part of job',\n", + " 'Eating and drinking as part of job',\n", + " 'Waiting associated with work-related activities',\n", + " 'Income-generating hobbies, crafts, and food',\n", + " 'Income-generating performances',\n", + " 'Income-generating services',\n", + " 'Income-generating rental property activities',\n", + " 'Waiting associated with other income-generating activities',\n", + " 'Other income-generating activities, n.e.c.*',\n", + " 'Job search activities',\n", + " 'Job interviewing',\n", + " 'Waiting associated with job search or interview',\n", + " 'Work and work-related activities, n.e.c.*',\n", + " 'Taking class for degree, certification, or licensure',\n", + " 'Taking class for personal interest',\n", + " 'Waiting associated with taking classes',\n", + " 'Taking class, n.e.c.*',\n", + " 'Extracurricular club activities',\n", + " 'Extracurricular music & performance activities',\n", + " 'Education-related extracurricular activities, n.e.c.*',\n", + " 'Research/homework for class for degree, certification, or licensure',\n", + " 'Research/homework for class for pers. interest',\n", + " 'Waiting associated with research/homework',\n", + " 'Research/homework n.e.c.*',\n", + " 'Administrative activities: class for degree, certification, or licensure',\n", + " 'Administrative activities: class for personal interest',\n", + " 'Waiting associated w/admin. activities (education)',\n", + " 'Administrative for education, n.e.c.*',\n", + " 'Education, n.e.c.*',\n", + " 'Grocery shopping',\n", + " 'Purchasing gas',\n", + " 'Purchasing food (not groceries)',\n", + " 'Shopping, except groceries, food and gas',\n", + " 'Waiting associated with shopping',\n", + " 'Comparison shopping',\n", + " 'Using paid childcare services',\n", + " 'Banking',\n", + " 'Using other financial services',\n", + " 'Waiting associated w/banking/financial services',\n", + " 'Using legal services',\n", + " 'Using health and care services outside the home',\n", + " 'Using in-home health and care services',\n", + " 'Waiting associated with medical services',\n", + " 'Using medical services, n.e.c.*',\n", + " 'Using personal care services',\n", + " 'Waiting associated w/personal care services',\n", + " 'Activities rel. to purchasing/selling real estate',\n", + " 'Waiting associated w/purchasing/selling real estate',\n", + " 'Using veterinary services',\n", + " 'Waiting associated with veterinary services',\n", + " 'Professional and personal services, n.e.c.*',\n", + " 'Using interior cleaning services',\n", + " 'Using clothing repair and cleaning services',\n", + " 'Using household services, n.e.c.*',\n", + " 'Using home maint/repair/décor/construction svcs',\n", + " 'Waiting associated w/ home main/repair/décor/constr',\n", + " 'Using pet services',\n", + " 'Waiting associated with pet services',\n", + " 'Using pet services, n.e.c.*',\n", + " 'Using lawn and garden services',\n", + " 'Using lawn and garden services, n.e.c.*',\n", + " 'Using vehicle maintenance or repair services',\n", + " 'Waiting associated with vehicle main. or repair svcs',\n", + " 'Using vehicle maint. & repair svcs, n.e.c.*',\n", + " 'Using household services, n.e.c.*',\n", + " 'Using police and fire services',\n", + " 'Using social services',\n", + " 'Obtaining licenses & paying fines, fees, taxes',\n", + " 'Using government services, n.e.c.*',\n", + " 'Civic obligations & participation',\n", + " 'Waiting associated with using government services',\n", + " 'Security procedures rel. to govt svcs/civic obligations, n.e.c.*',\n", + " 'Government services, n.e.c.*',\n", + " 'Eating and drinking',\n", + " 'Waiting associated w/eating & drinking',\n", + " 'Socializing and communicating with others',\n", + " 'Attending or hosting parties/receptions/ceremonies',\n", + " 'Attending meetings for personal interest (not volunteering)',\n", + " 'Attending/hosting social events, n.e.c.*',\n", + " 'Relaxing, thinking',\n", + " 'Tobacco and drug use',\n", + " 'Television and movies (not religious)',\n", + " 'Television (religious)',\n", + " 'Listening to the radio',\n", + " 'Listening to/playing music (not radio)',\n", + " 'Playing games',\n", + " 'Computer use for leisure (excluding games)',\n", + " 'Arts and crafts as a hobby',\n", + " 'Collecting as a hobby',\n", + " 'Hobbies, except arts & crafts and collecting',\n", + " 'Reading for personal interest',\n", + " 'Writing for personal interest',\n", + " 'Relaxing and leisure, n.e.c.*',\n", + " 'Attending performing arts',\n", + " 'Attending museums',\n", + " 'Attending movies/film',\n", + " 'Attending gambling establishments',\n", + " 'Arts and entertainment, n.e.c.*',\n", + " 'Waiting assoc. w/socializing & communicating',\n", + " 'Waiting assoc. w/attending/hosting social events',\n", + " 'Waiting associated with relaxing/leisure',\n", + " 'Waiting associated with arts & entertainment',\n", + " 'Waiting associated with socializing, n.e.c.*',\n", + " 'Socializing, relaxing, and leisure, n.e.c.*',\n", + " 'Doing aerobics',\n", + " 'Playing baseball',\n", + " 'Playing basketball',\n", + " 'Biking',\n", + " 'Playing billiards',\n", + " 'Boating',\n", + " 'Bowling',\n", + " 'Climbing, spelunking, caving',\n", + " 'Dancing',\n", + " 'Participating in equestrian sports',\n", + " 'Fishing',\n", + " 'Playing football',\n", + " 'Golfing',\n", + " 'Doing gymnastics',\n", + " 'Hiking',\n", + " 'Playing hockey',\n", + " 'Hunting',\n", + " 'Participating in martial arts',\n", + " 'Playing racquet sports',\n", + " 'Rollerblading',\n", + " 'Playing rugby',\n", + " 'Running',\n", + " 'Skiing, ice skating, snowboarding',\n", + " 'Playing soccer',\n", + " 'Softball',\n", + " 'Using cardiovascular equipment',\n", + " 'Vehicle touring/racing',\n", + " 'Playing volleyball',\n", + " 'Walking',\n", + " 'Participating in water sports',\n", + " 'Weightlifting/strength training',\n", + " 'Working out, unspecified',\n", + " 'Wrestling',\n", + " 'Doing yoga',\n", + " 'Playing sports n.e.c.*',\n", + " 'Watching baseball',\n", + " 'Watching basketball',\n", + " 'Watching billiards',\n", + " 'Watching boating',\n", + " 'Watching bowling',\n", + " 'Watching equestrian sports',\n", + " 'Watching football',\n", + " 'Watching gymnastics',\n", + " 'Watching hockey',\n", + " 'Watching racquet sports',\n", + " 'Watching rodeo competitions',\n", + " 'Watching rollerblading',\n", + " 'Watching rugby',\n", + " 'Watching running',\n", + " 'Watching skiing, ice skating, snowboarding',\n", + " 'Watching soccer',\n", + " 'Watching softball',\n", + " 'Watching vehicle touring/racing',\n", + " 'Watching volleyball',\n", + " 'Watching water sports',\n", + " 'Watching wrestling',\n", + " 'Attending sporting events, n.e.c.*',\n", + " 'Waiting related to playing sports or exercising',\n", + " 'Waiting related to attending sporting events',\n", + " 'Sports, exercise, & recreation, n.e.c.*',\n", + " 'Attending religious services',\n", + " 'Participation in religious practices',\n", + " 'Waiting associated w/religious & spiritual activities',\n", + " 'Religious education activities',\n", + " 'Religious and spiritual activities, n.e.c.*',\n", + " 'Computer use',\n", + " 'Organizing and preparing',\n", + " 'Reading',\n", + " 'Telephone calls (except hotline counseling)',\n", + " 'Writing',\n", + " 'Fundraising',\n", + " 'Administrative & support activities, n.e.c.*',\n", + " 'Food preparation, presentation, clean-up',\n", + " 'Collecting & delivering clothing & other goods',\n", + " 'Providing care',\n", + " 'Teaching, leading, counseling, mentoring',\n", + " 'Social service & care activities, n.e.c.*',\n", + " 'Building houses, wildlife sites, & other structures',\n", + " 'Indoor & outdoor maintenance, repair, & clean-up',\n", + " 'Indoor & outdoor maintenance, building & clean-up activities, n.e.c.*',\n", + " 'Performing',\n", + " 'Serving at volunteer events & cultural activities',\n", + " 'Participating in performance & cultural activities, n.e.c.*',\n", + " 'Attending meetings, conferences, & training',\n", + " 'Attending meetings, conferences, & training, n.e.c.*',\n", + " 'Public health activities',\n", + " 'Public safety activities',\n", + " 'Public health & safety activities, n.e.c.*',\n", + " 'Waiting associated with volunteer activities',\n", + " 'Security procedures related to volunteer activities',\n", + " 'Volunteer activities, n.e.c.*',\n", + " 'Telephone calls to/from family members',\n", + " 'Telephone calls to/from friends, neighbors, or acquaintances',\n", + " 'Telephone calls to/from education services providers',\n", + " 'Telephone calls to/from salespeople',\n", + " 'Telephone calls to/from professional or personal care svcs providers',\n", + " 'Telephone calls to/from household services providers',\n", + " 'Telephone calls to/from paid child or adult care providers',\n", + " 'Telephone calls to/from government officials',\n", + " 'Telephone calls (to or from), n.e.c.*',\n", + " 'Waiting associated with telephone calls',\n", + " 'Telephone calls, n.e.c.*',\n", + " 'Travel related to personal care',\n", + " 'Travel related to personal care, n.e.c.*',\n", + " 'Travel related to housework',\n", + " 'Travel related to food & drink prep., clean-up, & presentation',\n", + " 'Travel related to interior maintenance, repair, & decoration',\n", + " 'Travel related to exterior maintenance, repair, & decoration',\n", + " 'Travel related to lawn, garden, and houseplant care',\n", + " 'Travel related to care for animals and pets (not vet care)',\n", + " 'Travel related to vehicle care & maintenance (by self)',\n", + " 'Travel related to appliance, tool, and toy set-up, repair, & maintenance (by self)',\n", + " 'Travel related to household management',\n", + " 'Travel related to household activities, n.e.c.*',\n", + " 'Travel related to caring for & helping hh children',\n", + " \"Travel related to hh children's education\",\n", + " \"Travel related to hh children's health\",\n", + " 'Travel related to caring for hh adults',\n", + " 'Travel related to helping hh adults',\n", + " 'Travel related to caring for and helping nonhh children',\n", + " \"Travel related to nonhh children's education\",\n", + " \"Travel related to nonhh children's health\",\n", + " 'Travel related to caring for nonhh adults',\n", + " 'Travel related to helping nonhh adults',\n", + " 'Travel related to working',\n", + " 'Travel related to work-related activities',\n", + " 'Travel related to income-generating activities',\n", + " 'Travel related to job search & interviewing',\n", + " 'Travel related to work, n.e.c.*',\n", + " 'Travel related to taking class',\n", + " 'Travel related to extracurricular activities (ex. Sports)',\n", + " 'Travel related to research/homework',\n", + " 'Travel related to registration/administrative activities',\n", + " 'Travel related to education, n.e.c.*',\n", + " 'Travel related to grocery shopping',\n", + " 'Travel related to purchasing gas',\n", + " 'Travel related to purchasing food (not groceries)',\n", + " 'Travel related to shopping, ex groceries, food, and gas',\n", + " 'Travel related to consumer purchases, n.e.c.*',\n", + " 'Travel related to using childcare services',\n", + " 'Travel related to using financial services and banking',\n", + " 'Travel related to using legal services',\n", + " 'Travel related to using medical services',\n", + " 'Travel related to using personal care services',\n", + " 'Travel related to using real estate services',\n", + " 'Travel related to using veterinary services',\n", + " 'Travel rel. to using prof. & personal care services, n.e.c.*',\n", + " 'Travel related to using household services',\n", + " 'Travel related to using home main./repair/décor./construction svcs',\n", + " 'Travel related to using pet services (not vet)',\n", + " 'Travel related to using lawn and garden services',\n", + " 'Travel related to using vehicle maintenance & repair services',\n", + " 'Travel related to using household services, n.e.c.*',\n", + " 'Travel related to using government services',\n", + " 'Travel related to civic obligations & participation',\n", + " 'Travel rel. to govt svcs & civic obligations, n.e.c.*',\n", + " 'Travel related to eating and drinking',\n", + " 'Travel related to socializing and communicating',\n", + " 'Travel related to attending or hosting social events',\n", + " 'Travel related to relaxing and leisure',\n", + " 'Travel related to arts and entertainment',\n", + " 'Travel as a form of entertainment',\n", + " 'Travel rel. to socializing, relaxing, & leisure, n.e.c.*',\n", + " 'Travel related to participating in sports/exercise/recreation',\n", + " 'Travel related to attending sporting/recreational events',\n", + " 'Travel related to religious/spiritual practices',\n", + " 'Travel rel. to religious/spiritual activities, n.e.c.*',\n", + " 'Travel related to volunteering',\n", + " 'Travel related to volunteer activities, n.e.c.*',\n", + " 'Travel related to phone calls',\n", + " 'Security procedures related to traveling',\n", + " 'Traveling, n.e.c.*',\n", + " 'Insufficient detail in verbatim',\n", + " 'Missing travel or destination',\n", + " 'Respondent refused to provide information/\"none of your business\"',\n", + " \"Gap/can't remember\",\n", + " 'Unable to code activity at 1st tier']" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "data['weighted_minutes'] = data.weight * data.minutes" + "import parse_activities as pa\n", + "#import importlib\n", + "#importlib.reload(pa)\n", + "#del pa\n", + "pa.atus_codes_list\n", + "pa.codes_dict\n", + "z = summary_columns.copy()\n", + "z.update(pa.codes_dict)\n", + "summary_columns = z\n", + "summary_columns\n", + "code_meanings = [ pa.codes_dict[i] for i in summary.columns.values[24:]]\n", + "meanings_unsorted.extend(code_meanings)\n", + "meanings_unsorted\n", + "# summary4 = summary.rename(columns=pa.codes_dict)\n", + "# summary4.head()\n", + "# summary5 = summary4\n", + "# summary5.columns = pd.MultiIndex.from_tuples(list(zip(meanings_unsorted, summary.columns)))\n", + "# summary5.head() # .columns.values" ] }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 11, "metadata": { "collapsed": false }, @@ -474,92 +1056,548 @@ "\n", - " | weight | \n", - "minutes | \n", - "weighted_minutes | \n", + "tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
\n", + " | atus_case_id | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "... | \n", + "Travel related to volunteering | \n", + "Travel related to volunteer activities, n.e.c.* | \n", + "Travel related to phone calls | \n", + "Security procedures related to traveling | \n", + "Traveling, n.e.c.* | \n", + "Insufficient detail in verbatim | \n", + "Missing travel or destination | \n", + "Respondent refused to provide information/\"none of your business\" | \n", + "Gap/can't remember | \n", + "Unable to code activity at 1st tier | \n", "|||
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "|||
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "|||
2 | \n", + "20130101130123 | \n", "10377056.507734 | \n", - "60 | \n", - "6.226234e+08 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", "|
3 | \n", + "20130101130611 | \n", "7731257.992805 | \n", - "65 | \n", - "5.025318e+08 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", "|
4 | \n", + "20130101130616 | \n", "4725269.227067 | \n", - "90 | \n", - "4.252742e+08 | \n", - "||||||||||||||||||||
5 | \n", - "2372791.046351 | \n", - "270 | \n", - "6.406536e+08 | \n", - "|||||||||||||||||||||
6 | \n", - "5671341.270490 | \n", - "244 | \n", - "1.383807e+09 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", "
5 rows × 413 columns
\n", "\n", + " | weight | \n", + "minutes | \n", + "weighted_minutes | \n", + "
---|---|---|---|
2 | \n", + "10377056.507734 | \n", + "60 | \n", + "6.226234e+08 | \n", + "
3 | \n", + "7731257.992805 | \n", + "65 | \n", + "5.025318e+08 | \n", + "
4 | \n", + "4725269.227067 | \n", + "90 | \n", + "4.252742e+08 | \n", + "
5 | \n", + "2372791.046351 | \n", + "270 | \n", + "6.406536e+08 | \n", + "
6 | \n", + "5671341.270490 | \n", + "244 | \n", + "1.383807e+09 | \n", + "
5 rows × 175 columns
\n", + "" + ], + "text/plain": [ + " TUCASEID TULINENO TUYEAR TUMONTH TEABSRSN TEERN TEERNH1O \\\n", + "0 20130101130004 1 2013 1 -1 -1 -1 \n", + "1 20130101130112 1 2013 1 -1 -1 -1 \n", + "2 20130101130123 1 2013 1 -1 -1 -1 \n", + "3 20130101130611 1 2013 1 -1 -1 -1 \n", + "4 20130101130616 1 2013 1 -1 -1 -1 \n", + "\n", + " TEERNH2 TEERNHRO TEERNHRY ... TXSPEMPNOT TXSPUHRS TXTCC \\\n", + "0 -1 -1 -1 ... -1 -1 0 \n", + "1 -1 -1 2 ... 0 0 0 \n", + "2 -1 -1 -1 ... 0 0 -1 \n", + "3 -1 -1 2 ... -1 -1 -1 \n", + "4 -1 -1 2 ... -1 -1 -1 \n", + "\n", + " TXTCCTOT TXTCOC TXTHH TXTNOHH TXTO TXTOHH TXTONHH \n", + "0 0 0 0 0 -1 -1 -1 \n", + "1 0 0 0 -1 0 0 -1 \n", + "2 0 0 -1 -1 -1 -1 -1 \n", + "3 0 0 -1 -1 -1 -1 -1 \n", + "4 0 0 -1 -1 -1 -1 -1 \n", + "\n", + "[5 rows x 175 columns]" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "respondents.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " | TUCASEID | \n", + "TUACTIVITY_N | \n", + "TEWHERE | \n", + "TRTCCTOT_LN | \n", + "TRTCC_LN | \n", + "TRTCOC_LN | \n", + "TRTEC_LN | \n", + "TRTHH_LN | \n", + "TRTNOHH_LN | \n", + "TRTOHH_LN | \n", + "... | \n", + "TUDURSTOP | \n", + "TUEC24 | \n", + "TUSTARTTIM | \n", + "TUSTOPTIME | \n", + "TUTIER1CODE | \n", + "TUTIER2CODE | \n", + "TUTIER3CODE | \n", + "TRCODE | \n", + "TRTIER2 | \n", + "TXWHERE | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "1 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "04:00:00 | \n", + "12:00:00 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "10101 | \n", + "101 | \n", + "0 | \n", + "
1 | \n", + "20130101130004 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", + "5 | \n", + "5 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:00:00 | \n", + "12:05:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
2 | \n", + "20130101130004 | \n", + "3 | \n", + "1 | \n", + "120 | \n", + "120 | \n", + "0 | \n", + "-1 | \n", + "120 | \n", + "120 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "12:05:00 | \n", + "14:05:00 | \n", + "12 | \n", + "3 | \n", + "3 | \n", + "120303 | \n", + "1203 | \n", + "0 | \n", + "
3 | \n", + "20130101130004 | \n", + "4 | \n", + "1 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "0 | \n", + "0 | \n", + "-1 | \n", + "... | \n", + "2 | \n", + "-1 | \n", + "14:05:00 | \n", + "19:00:00 | \n", + "6 | \n", + "3 | \n", + "1 | \n", + "60301 | \n", + "603 | \n", + "0 | \n", + "
4 | \n", + "20130101130004 | \n", + "5 | \n", + "1 | \n", + "30 | \n", + "30 | \n", + "0 | \n", + "-1 | \n", + "30 | \n", + "30 | \n", + "-1 | \n", + "... | \n", + "1 | \n", + "-1 | \n", + "19:00:00 | \n", + "19:30:00 | \n", + "11 | \n", + "1 | \n", + "1 | \n", + "110101 | \n", + "1101 | \n", + "0 | \n", + "
5 rows × 31 columns
\n", + "\n", + " | TUCASEID | \n", + "TUACTIVITY_N | \n", + "TXTCOC | \n", + "
---|---|---|---|
0 | \n", + "20130101130004 | \n", + "1 | \n", + "0 | \n", + "
1 | \n", + "20130101130004 | \n", + "2 | \n", + "0 | \n", + "
2 | \n", + "20130101130004 | \n", + "3 | \n", + "0 | \n", + "
3 | \n", + "20130101130004 | \n", + "4 | \n", + "0 | \n", + "
4 | \n", + "20130101130004 | \n", + "5 | \n", + "0 | \n", + "
\n", + " | tucaseid | \n", + "TUFINLWGT | \n", + "TRYHHCHILD | \n", + "TEAGE | \n", + "TESEX | \n", + "PEEDUCA | \n", + "PTDTRACE | \n", + "PEHSPNON | \n", + "GTMETSTA | \n", + "TELFS | \n", + "... | \n", + "t181501 | \n", + "t181599 | \n", + "t181601 | \n", + "t181801 | \n", + "t189999 | \n", + "t500101 | \n", + "t500103 | \n", + "t500105 | \n", + "t500106 | \n", + "t500107 | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "20130101130004 | \n", + "11899905.662034 | \n", + "12 | \n", + "22 | \n", + "2 | \n", + "40 | \n", + "8 | \n", + "2 | \n", + "1 | \n", + "5 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
1 | \n", + "20130101130112 | \n", + "4447638.009513 | \n", + "1 | \n", + "39 | \n", + "1 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
2 | \n", + "20130101130123 | \n", + "10377056.507734 | \n", + "-1 | \n", + "47 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "... | \n", + "25 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
3 | \n", + "20130101130611 | \n", + "7731257.992805 | \n", + "-1 | \n", + "50 | \n", + "2 | \n", + "40 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
4 | \n", + "20130101130616 | \n", + "4725269.227067 | \n", + "-1 | \n", + "45 | \n", + "2 | \n", + "40 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "... | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "0 | \n", + "
5 rows × 413 columns
\n", + "\n", + " | hours | \n", + "activity | \n", + "description | \n", + "atus_final_weight | \n", + "youngest_child_age | \n", + "age_edited | \n", + "gender | \n", + "education_level | \n", + "race | \n", + "is_hispanic | \n", + "metropolitan_status | \n", + "employment_status | \n", + "has_multiple_jobs | \n", + "work_status | \n", + "is_student | \n", + "school_level | \n", + "partner_present | \n", + "partner_employed | \n", + "weekly_earnings_main | \n", + "household_children | \n", + "partner_work_status | \n", + "weekly_hours_worked | \n", + "date | \n", + "is_holiday | \n", + "eldercare_minutes | \n", + "childcare_minutes | \n", + "||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tucaseid | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | \n", + " | ||||||||||||||||
20131110131406 | \n", + "23.550000 | \n", + "t010101 | \n", + "Sleeping | \n", + "1899058.155655 | \n", + "-1 | \n", + "52 | \n", + "2 | \n", + "39 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "48000 | \n", "0 | \n", "-1 | \n", + "40 | \n", + "7 | \n", "0 | \n", + "27 | \n", "0 | \n", - "-1 | \n", "|||||||||||||||
2 | \n", - "20130101130123 | \n", + "20130807132371 | \n", + "22.500000 | \n", + "t050101 | \n", + "Work, main job | \n", + "3107214.726310 | \n", + "9 | \n", + "47 | \n", "1 | \n", - "2013 | \n", + "43 | \n", "1 | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", "-1 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", - "... | \n", - "0 | \n", + "1 | \n", + "1 | \n", + "192307 | \n", + "2 | \n", + "1 | \n", + "45 | \n", + "1 | \n", "0 | \n", "-1 | \n", "0 | \n", - "0 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", - "-1 | \n", "
3 | \n", - "20130101130611 | \n", + "20130807132365 | \n", + "22.000000 | \n", + "t500101 | \n", + "Insufficient detail in verbatim | \n", + "3345022.104425 | \n", + "2 | \n", + "32 | \n", "1 | \n", - "2013 | \n", + "40 | \n", "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", "-1 | \n", + "1 | \n", + "2 | \n", + "288461 | \n", + "2 | \n", "-1 | \n", + "99 | \n", + "1 | \n", + "0 | \n", "-1 | \n", + "0 | \n", + "|||||||||||||
20131009131778 | \n", + "21.816667 | \n", + "t120303 | \n", + "Television and movies (not religious) | \n", + "3495526.270281 | \n", "-1 | \n", - "-1 | \n", + "63 | \n", + "1 | \n", + "38 | \n", "2 | \n", - "... | \n", + "2 | \n", + "1 | \n", + "4 | \n", "-1 | \n", "-1 | \n", "-1 | \n", - "0 | \n", - "0 | \n", + "-1 | \n", + "3 | \n", "-1 | \n", "-1 | \n", + "0 | \n", "-1 | \n", "-1 | \n", + "4 | \n", + "0 | \n", "-1 | \n", + "0 | \n", "||||||||||||
4 | \n", - "20130101130616 | \n", + "20130605131901 | \n", + "21.050000 | \n", + "t120312 | \n", + "Reading for personal interest | \n", + "2218752.415573 | \n", + "-1 | \n", + "85 | \n", "1 | \n", - "2013 | \n", + "40 | \n", "1 | \n", + "2 | \n", + "1 | \n", + "5 | \n", "-1 | \n", "-1 | \n", "-1 | \n", "-1 | \n", + "3 | \n", "-1 | \n", - "2 | \n", - "... | \n", "-1 | \n", + "0 | \n", "-1 | \n", "-1 | \n", + "7 | \n", "0 | \n", + "-1 | \n", "0 | \n", + "|||||||||||
20130201131342 | \n", + "20.500000 | \n", + "t030401 | \n", + "Physical care for hh adults | \n", + "4884344.681430 | \n", "-1 | \n", + "58 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "2 | \n", "-1 | \n", "-1 | \n", + "3 | \n", "-1 | \n", + "76923 | \n", + "0 | \n", "-1 | \n", - "
5 rows × 175 columns
\n", - "\n", - " | TUCASEID | \n", - "TUACTIVITY_N | \n", - "TEWHERE | \n", - "TRTCCTOT_LN | \n", - "TRTCC_LN | \n", - "TRTCOC_LN | \n", - "TRTEC_LN | \n", - "TRTHH_LN | \n", - "TRTNOHH_LN | \n", - "TRTOHH_LN | \n", - "... | \n", - "TUDURSTOP | \n", - "TUEC24 | \n", - "TUSTARTTIM | \n", - "TUSTOPTIME | \n", - "TUTIER1CODE | \n", - "TUTIER2CODE | \n", - "TUTIER3CODE | \n", - "TRCODE | \n", - "TRTIER2 | \n", - "TXWHERE | \n", - "||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "20130101130004 | \n", + "12 | \n", "1 | \n", - "-1 | \n", - "0 | \n", - "0 | \n", "0 | \n", "-1 | \n", "0 | \n", - "0 | \n", - "-1 | \n", - "... | \n", - "2 | \n", + "||||||||||||||||||||||||||||
20130212121071 | \n", + "19.716667 | \n", + "t120301 | \n", + "Relaxing, thinking | \n", + "6002226.550923 | \n", "-1 | \n", - "04:00:00 | \n", - "12:00:00 | \n", - "1 | \n", + "80 | \n", "1 | \n", + "38 | \n", "1 | \n", - "10101 | \n", - "101 | \n", - "0 | \n", - "||||||||||||||||||||||||||
1 | \n", - "20130101130004 | \n", "2 | \n", "1 | \n", "5 | \n", - "5 | \n", - "0 | \n", "-1 | \n", - "5 | \n", - "5 | \n", "-1 | \n", - "... | \n", - "1 | \n", "-1 | \n", - "12:00:00 | \n", - "12:05:00 | \n", - "11 | \n", - "1 | \n", - "1 | \n", - "110101 | \n", - "1101 | \n", - "0 | \n", - "||||||||||||||||||||
2 | \n", - "20130101130004 | \n", + "-1 | \n", "3 | \n", - "1 | \n", - "120 | \n", - "120 | \n", - "0 | \n", "-1 | \n", - "120 | \n", - "120 | \n", "-1 | \n", - "... | \n", - "1 | \n", + "0 | \n", + "-1 | \n", "-1 | \n", - "12:05:00 | \n", - "14:05:00 | \n", - "12 | \n", - "3 | \n", "3 | \n", - "120303 | \n", - "1203 | \n", + "0 | \n", + "-1 | \n", "0 | \n", "|||||||||||||||
3 | \n", - "20130101130004 | \n", - "4 | \n", + "20130302130037 | \n", + "19.583333 | \n", + "t020103 | \n", + "Sewing, repairing, & maintaining textiles | \n", + "1940694.543983 | \n", + "-1 | \n", + "65 | \n", + "2 | \n", + "36 | \n", "1 | \n", + "2 | \n", + "2 | \n", + "1 | \n", + "2 | \n", + "2 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "10000 | \n", "0 | \n", - "0 | \n", - "0 | \n", + "-1 | \n", + "10 | \n", + "1 | \n", + "1 | \n", "-1 | \n", "0 | \n", + "||||||||||
20130908131014 | \n", + "19.000000 | \n", + "t030101 | \n", + "Physical care for hh children | \n", + "7872288.902837 | \n", "0 | \n", - "-1 | \n", - "... | \n", + "30 | \n", + "2 | \n", + "43 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "1 | \n", + "2 | \n", + "2 | \n", "2 | \n", "-1 | \n", - "14:05:00 | \n", - "19:00:00 | \n", - "6 | \n", - "3 | \n", "1 | \n", - "60301 | \n", - "603 | \n", + "1 | \n", + "30000 | \n", + "1 | \n", + "1 | \n", + "15 | \n", + "5 | \n", + "0 | \n", + "-1 | \n", "0 | \n", "|||||||
4 | \n", - "20130101130004 | \n", - "5 | \n", + "20130706131713 | \n", + "18.750000 | \n", + "t130199 | \n", + "Playing sports n.e.c.* | \n", + "7485472.098981 | \n", + "-1 | \n", + "55 | \n", "1 | \n", - "30 | \n", - "30 | \n", + "38 | \n", + "1 | \n", + "2 | \n", + "1 | \n", + "4 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "-1 | \n", + "3 | \n", + "-1 | \n", + "-1 | \n", "0 | \n", "-1 | \n", - "30 | \n", - "30 | \n", "-1 | \n", - "... | \n", + "5 | \n", "1 | \n", "-1 | \n", - "19:00:00 | \n", - "19:30:00 | \n", - "11 | \n", - "1 | \n", - "1 | \n", - "110101 | \n", - "1101 | \n", "0 | \n", "
5 rows × 31 columns
\n", "\n", - " | TUCASEID | \n", - "TUACTIVITY_N | \n", - "TXTCOC | \n", - "
---|---|---|---|
0 | \n", - "20130101130004 | \n", - "1 | \n", - "0 | \n", - "
1 | \n", - "20130101130004 | \n", - "2 | \n", - "0 | \n", - "
2 | \n", - "20130101130004 | \n", - "3 | \n", - "0 | \n", - "
3 | \n", - "20130101130004 | \n", - "4 | \n", - "0 | \n", - "
4 | \n", - "20130101130004 | \n", - "5 | \n", - "0 | \n", - "
\s*\d{2})\s+(?P.+)\n') # FIXME: How to remove spurious page numbers?
+with open('activities.txt') as f:
+ line = f.readline()
+ while line:
+ match = re.match(regex, line)
+ if match:
+ code = match.groupdict()['code']
+ desc = match.groupdict()['desc']
+ curr_lev = which_level(code, desc)
+ full = full_code(code)
+ #print(curr_lev, (6-curr_lev)*' ', code)
+ #if curr_lev in [0,2]:
+ #print(curr_lev, curr_lev*' ', code, desc)
+ #print(desc)
+ #print(level, full, code, desc)
+ codes_list.append((full, desc))
+ #codes_dict[full] = desc
+ line = f.readline()
+
+# codes_dict = {full: desc for (full, desc) in codes_list}
+# categories = {full: desc for (full, desc) in codes_list if len(full)==2}
+# sub_categories = {full: desc for (full, desc) in codes_list if len(full)==4}
+# activities = {full: desc for (full, desc) in codes_list if len(full)==6}
+# pprint(codes_list)
+
+
+
+# ATUS 2013 Lexicon as a Python list
+# Converted from http://www.bls.gov/tus/lexiconnoex2013.pdf from the
+# United States Bureau of Labor Statistics - American Time Use Survey
+# 5/28/2015
+#
+# The following dictionary comprehensions may also be useful:
+#
+# codes_dict = {num: desc for (num, desc) in atus_codes_list}
+# categories = {num: desc for (num, desc) in atus_codes_list if len(num)==2}
+# sub_categories = {num: desc for (num, desc) in atus_codes_list if len(num)==4}
+# activities = {num: desc for (num, desc) in atus_codes_list if len(num)==6}
+
+atus_codes_list = [
+ ('t01', 'Personal Care'),
+ ('t0101', 'Sleeping'),
+ ('t010101', 'Sleeping'),
+ ('t010102', 'Sleeplessness'),
+ ('t010199', 'Sleeping, n.e.c.*'),
+ ('t0102', 'Grooming'),
+ ('t010201', 'Washing, dressing and grooming oneself'),
+ ('t010299', 'Grooming, n.e.c.*'),
+ ('t0103', 'Health-related Self Care'),
+ ('t010301', 'Health-related self care'),
+ ('t010399', 'Self care, n.e.c.*'),
+ ('t0104', 'Personal Activities'),
+ ('t010401', 'Personal/Private activities'),
+ ('t010499', 'Personal activities, n.e.c.*'),
+ ('t0105', 'Personal Care Emergencies'),
+ ('t010501', 'Personal emergencies'),
+ ('t010599', 'Personal care emergencies, n.e.c.*'),
+ ('t0199', 'Personal Care, n.e.c.*'),
+ ('t019999', 'Personal care, n.e.c.*'),
+ ('t02', 'Household Activities'),
+ ('t0201', 'Housework'),
+ ('t020101', 'Interior cleaning'),
+ ('t020102', 'Laundry'),
+ ('t020103', 'Sewing, repairing, & maintaining textiles'),
+ ('t020104', 'Storing interior hh items, inc. food'),
+ ('t020199', 'Housework, n.e.c.*'),
+ ('t0202', 'Food & Drink Prep., Presentation, & Clean-up'),
+ ('t020201', 'Food and drink preparation'),
+ ('t020202', 'Food presentation'),
+ ('t020203', 'Kitchen and food clean-up'),
+ ('t020299', 'Food & drink prep, presentation, & clean-up, n.e.c.*'),
+ ('t0203', 'Interior Maintenance, Repair, & Decoration'),
+ ('t020301', 'Interior arrangement, decoration, & repairs'),
+ ('t020302', 'Building and repairing furniture'),
+ ('t020303', 'Heating and cooling'),
+ ('t020399', 'Interior maintenance, repair, & decoration, n.e.c.*'),
+ ('t0204', 'Exterior Maintenance, Repair, & Decoration'),
+ ('t020401', 'Exterior cleaning'),
+ ('t020402', 'Exterior repair, improvements, & decoration'),
+ ('t020499', 'Exterior maintenance, repair & decoration, n.e.c.*'),
+ ('t0205', 'Lawn, Garden, and Houseplants'),
+ ('t020501', 'Lawn, garden, and houseplant care'),
+ ('t020502', 'Ponds, pools, and hot tubs'),
+ ('t020599', 'Lawn and garden, n.e.c.*'),
+ ('t0206', 'Animals and Pets'),
+ ('t020601', 'Care for animals and pets (not veterinary care)'),
+ ('t020602', 'Walking / exercising / playing with animals'),
+ ('t020699', 'Pet and animal care, n.e.c.*'),
+ ('t0207', 'Vehicles'),
+ ('t020701', 'Vehicle repair and maintenance (by self)'),
+ ('t020799', 'Vehicles, n.e.c.*'),
+ ('t0208', 'Appliances, Tools, and Toys'),
+ ('t020801',
+ 'Appliance, tool, and toy set-up, repair, & maintenance (by self)'),
+ ('t020899', 'Appliances and tools, n.e.c.*'),
+ ('t0209', 'Household Management'),
+ ('t020901', 'Financial management'),
+ ('t020902', 'Household & personal organization and planning'),
+ ('t020903', 'HH & personal mail & messages (except e-mail)'),
+ ('t020904', 'HH & personal e-mail and messages'),
+ ('t020905', 'Home security'),
+ ('t020999', 'Household management, n.e.c.*'),
+ ('t0299', 'Household Activities, n.e.c.*'),
+ ('t029999', 'Household activities, n.e.c.*'),
+ ('t03', 'Caring For & Helping Household (HH) Members'),
+ ('t0301', 'Caring For & Helping HH Children'),
+ ('t030101', 'Physical care for hh children'),
+ ('t030102', 'Reading to/with hh children'),
+ ('t030103', 'Playing with hh children, not sports'),
+ ('t030104', 'Arts and crafts with hh children'),
+ ('t030105', 'Playing sports with hh children'),
+ ('t030106', 'Talking with/listening to hh children'),
+ ('t030108', 'Organization & planning for hh children'),
+ ('t030109', 'Looking after hh children (as a primary activity)'),
+ ('t030110', "Attending hh children's events"),
+ ('t030111', 'Waiting for/with hh children'),
+ ('t030112', 'Picking up/dropping off hh children'),
+ ('t030199', 'Caring for & helping hh children, n.e.c.*'),
+ ('t0302', "Activities Related to HH Children's Education"),
+ ('t030201', 'Homework (hh children)'),
+ ('t030202', 'Meetings and school conferences (hh children)'),
+ ('t030203', 'Home schooling of hh children'),
+ ('t030204', "Waiting associated with hh children's education"),
+ ('t030299', "Activities related to hh child's education, n.e.c.*"),
+ ('t0303', "Activities Related to HH Children's Health"),
+ ('t030301', 'Providing medical care to hh children'),
+ ('t030302', 'Obtaining medical care for hh children'),
+ ('t030303', "Waiting associated with hh children's health"),
+ ('t030399', "Activities related to hh child's health, n.e.c.*"),
+ ('t0304', 'Caring For Household Adults'),
+ ('t030401', 'Physical care for hh adults'),
+ ('t030402', 'Looking after hh adult (as a primary activity)'),
+ ('t030403', 'Providing medical care to hh adult'),
+ ('t030404', 'Obtaining medical and care services for hh adult'),
+ ('t030405', 'Waiting associated with caring for household adults'),
+ ('t030499', 'Caring for household adults, n.e.c.*'),
+ ('t0305', 'Helping Household Adults'),
+ ('t030501', 'Helping hh adults'),
+ ('t030502', 'Organization & planning for hh adults'),
+ ('t030503', 'Picking up/dropping off hh adult'),
+ ('t030504', 'Waiting associated with helping hh adults'),
+ ('t030599', 'Helping household adults, n.e.c.*'),
+ ('t0399', 'Caring For & Helping HH Members, n.e.c.*'),
+ ('t039999', 'Caring for & helping hh members, n.e.c.*'),
+ ('t04', 'Caring For & Helping Nonhousehold (NonHH) Members'),
+ ('t0401', 'Caring For & Helping NonHH Children'),
+ ('t040101', 'Physical care for nonhh children'),
+ ('t040102', 'Reading to/with nonhh children'),
+ ('t040103', 'Playing with nonhh children, not sports'),
+ ('t040104', 'Arts and crafts with nonhh children'),
+ ('t040105', 'Playing sports with nonhh children'),
+ ('t040106', 'Talking with/listening to nonhh children'),
+ ('t040108', 'Organization & planning for nonhh children'),
+ ('t040109', 'Looking after nonhh children (as primary activity)'),
+ ('t040110', "Attending nonhh children's events"),
+ ('t040111', 'Waiting for/with nonhh children'),
+ ('t040112', 'Dropping off/picking up nonhh children'),
+ ('t040199', 'Caring for and helping nonhh children, n.e.c.*'),
+ ('t0402', "Activities Related to Nonhh Children's Education"),
+ ('t040201', 'Homework (nonhh children)'),
+ ('t040202', 'Meetings and school conferences (nonhh children)'),
+ ('t040203', 'Home schooling of nonhh children'),
+ ('t040204', "Waiting associated with nonhh children's education"),
+ ('t040299', "Activities related to nonhh child's educ., n.e.c.*"),
+ ('t0403', "Activities Related to Nonhh Children's Health"),
+ ('t040301', 'Providing medical care to nonhh children'),
+ ('t040302', 'Obtaining medical care for nonhh children'),
+ ('t040303', "Waiting associated with nonhh children's health"),
+ ('t040399', "Activities related to nonhh child's health, n.e.c.*"),
+ ('t0404', 'Caring For Nonhousehold Adults'),
+ ('t040401', 'Physical care for nonhh adults'),
+ ('t040402', 'Looking after nonhh adult (as a primary activity)'),
+ ('t040403', 'Providing medical care to nonhh adult'),
+ ('t040404', 'Obtaining medical and care services for nonhh adult'),
+ ('t040405', 'Waiting associated with caring for nonhh adults'),
+ ('t040499', 'Caring for nonhh adults, n.e.c.*'),
+ ('t0405', 'Helping Nonhousehold Adults'),
+ ('t040501', 'Housework, cooking, & shopping assistance for nonhh adults'),
+ ('t040502', 'House & lawn maintenance & repair assistance for nonhh adults'),
+ ('t040503', 'Animal & pet care assistance for nonhh adults'),
+ ('t040504',
+ 'Vehicle & appliance maintenance/repair assistance for nonhh adults'),
+ ('t040505', 'Financial management assistance for nonhh adults'),
+ ('t040506', 'Household management & paperwork assistance for nonhh adults'),
+ ('t040507', 'Picking up/dropping off nonhh adult'),
+ ('t040508', 'Waiting associated with helping nonhh adults'),
+ ('t040599', 'Helping nonhh adults, n.e.c.*'),
+ ('t0499', 'Caring For & Helping NonHH Members, n.e.c.*'),
+ ('t049999', 'Caring for & helping nonhh members, n.e.c.*'),
+ ('t05', 'Work & Work-Related Activities'),
+ ('t0501', 'Working'),
+ ('t050101', 'Work, main job'),
+ ('t050102', 'Work, other job(s)'),
+ ('t050103', 'Security procedures related to work'),
+ ('t050104', 'Waiting associated with working'),
+ ('t050199', 'Working, n.e.c.*'),
+ ('t0502', 'Work-Related Activities'),
+ ('t050201', 'Socializing, relaxing, and leisure as part of job'),
+ ('t050202', 'Eating and drinking as part of job'),
+ ('t050203', 'Sports and exercise as part of job'),
+ ('t050204', 'Security procedures as part of job'),
+ ('t050205', 'Waiting associated with work-related activities'),
+ ('t050299', 'Work-related activities, n.e.c.*'),
+ ('t0503', 'Other Income-generating Activities'),
+ ('t050301', 'Income-generating hobbies, crafts, and food'),
+ ('t050302', 'Income-generating performances'),
+ ('t050303', 'Income-generating services'),
+ ('t050304', 'Income-generating rental property activities'),
+ ('t050305', 'Waiting associated with other income-generating activities'),
+ ('t050399', 'Other income-generating activities, n.e.c.*'),
+ ('t0504', 'Job Search and Interviewing'),
+ ('t050401', 'Job search activities'),
+ ('t050403', 'Job interviewing'),
+ ('t050404', 'Waiting associated with job search or interview'),
+ ('t050405', 'Security procedures rel. to job search/interviewing'),
+ ('t050499', 'Job search and Interviewing, n.e.c.*'),
+ ('t0599', 'Work and Work-Related Activities, n.e.c.*'),
+ ('t059999', 'Work and work-related activities, n.e.c.*'),
+ ('t06', 'Education'),
+ ('t0601', 'Taking Class'),
+ ('t060101', 'Taking class for degree, certification, or licensure'),
+ ('t060102', 'Taking class for personal interest'),
+ ('t060103', 'Waiting associated with taking classes'),
+ ('t060104', 'Security procedures rel. to taking classes'),
+ ('t060199', 'Taking class, n.e.c.*'),
+ ('t0602', 'Extracurricular School Activities (Except Sports)'),
+ ('t060201', 'Extracurricular club activities'),
+ ('t060202', 'Extracurricular music & performance activities'),
+ ('t060203', 'Extracurricular student government activities'),
+ ('t060204', 'Waiting associated with extracurricular activities'),
+ ('t060299', 'Education-related extracurricular activities, n.e.c.*'),
+ ('t0603', 'Research/Homework'),
+ ('t060301',
+ 'Research/homework for class for degree, certification, or licensure'),
+ ('t060302', 'Research/homework for class for pers. interest'),
+ ('t060303', 'Waiting associated with research/homework'),
+ ('t060399', 'Research/homework n.e.c.*'),
+ ('t0604', 'Registration/Administrative activities'),
+ ('t060401',
+ 'Administrative activities: class for degree, certification, or licensure'),
+ ('t060402', 'Administrative activities: class for personal interest'),
+ ('t060403', 'Waiting associated w/admin. activities (education)'),
+ ('t060499', 'Administrative for education, n.e.c.*'),
+ ('t0699', 'Education, n.e.c.*'),
+ ('t069999', 'Education, n.e.c.*'),
+ ('t07', 'Consumer Purchases'),
+ ('t0701', 'Shopping (Store, Telephone, Internet)'),
+ ('t070101', 'Grocery shopping'),
+ ('t070102', 'Purchasing gas'),
+ ('t070103', 'Purchasing food (not groceries)'),
+ ('t070104', 'Shopping, except groceries, food and gas'),
+ ('t070105', 'Waiting associated with shopping'),
+ ('t070199', 'Shopping, n.e.c.*'),
+ ('t0702', 'Researching Purchases'),
+ ('t070201', 'Comparison shopping'),
+ ('t070299', 'Researching purchases, n.e.c.*'),
+ ('t0703', 'Security Procedures Rel. to Consumer Purchases'),
+ ('t070301', 'Security procedures rel. to consumer purchases'),
+ ('t070399', 'Security procedures rel. to consumer purchases, n.e.c.*'),
+ ('t0799', 'Consumer Purchases, n.e.c.*'),
+ ('t079999', 'Consumer purchases, n.e.c.*'),
+ ('t08', 'Professional & Personal Care Services'),
+ ('t0801', 'Childcare Services'),
+ ('t080101', 'Using paid childcare services'),
+ ('t080102', 'Waiting associated w/purchasing childcare svcs'),
+ ('t080199', 'Using paid childcare services, n.e.c.*'),
+ ('t0802', 'Financial Services and Banking'),
+ ('t080201', 'Banking'),
+ ('t080202', 'Using other financial services'),
+ ('t080203', 'Waiting associated w/banking/financial services'),
+ ('t080299', 'Using financial services and banking, n.e.c.*'),
+ ('t0803', 'Legal Services'),
+ ('t080301', 'Using legal services'),
+ ('t080302', 'Waiting associated with legal services'),
+ ('t080399', 'Using legal services, n.e.c.*'),
+ ('t0804', 'Medical and Care Services'),
+ ('t080401', 'Using health and care services outside the home'),
+ ('t080402', 'Using in-home health and care services'),
+ ('t080403', 'Waiting associated with medical services'),
+ ('t080499', 'Using medical services, n.e.c.*'),
+ ('t0805', 'Personal Care Services'),
+ ('t080501', 'Using personal care services'),
+ ('t080502', 'Waiting associated w/personal care services'),
+ ('t080599', 'Using personal care services, n.e.c.*'),
+ ('t0806', 'Real Estate'),
+ ('t080601', 'Activities rel. to purchasing/selling real estate'),
+ ('t080602', 'Waiting associated w/purchasing/selling real estate'),
+ ('t080699', 'Using real estate services, n.e.c.*'),
+ ('t0807', 'Veterinary Services (excluding grooming)'),
+ ('t080701', 'Using veterinary services'),
+ ('t080702', 'Waiting associated with veterinary services'),
+ ('t080799', 'Using veterinary services, n.e.c.*'),
+ ('t0808', 'Security Procedures Rel. to Professional/Personal Svcs.'),
+ ('t080801', 'Security procedures rel. to professional/personal svcs.'),
+ ('t080899', 'Security procedures rel. to professional/personal svcs n.e.c.*'),
+ ('t0899', 'Professional and Personal Services, n.e.c.*'),
+ ('t089999', 'Professional and personal services, n.e.c.*'),
+ ('t09', 'Household Services'),
+ ('t0901', 'Household Services (not done by self)'),
+ ('t090101', 'Using interior cleaning services'),
+ ('t090102', 'Using meal preparation services'),
+ ('t090103', 'Using clothing repair and cleaning services'),
+ ('t090104', 'Waiting associated with using household services'),
+ ('t090199', 'Using household services, n.e.c.*'),
+ ('t0902', 'Home Maint/Repair/Decor/Construction (not done by self)'),
+ ('t090201', 'Using home maint/repair/décor/construction svcs'),
+ ('t090202', 'Waiting associated w/ home main/repair/décor/constr'),
+ ('t090299', 'Using home maint/repair/décor/constr services, n.e.c.*'),
+ ('t0903', 'Pet Services (not done by self, not vet)'),
+ ('t090301', 'Using pet services'),
+ ('t090302', 'Waiting associated with pet services'),
+ ('t090399', 'Using pet services, n.e.c.*'),
+ ('t0904', 'Lawn & Garden Services (not done by self)'),
+ ('t090401', 'Using lawn and garden services'),
+ ('t090402', 'Waiting associated with using lawn & garden services'),
+ ('t090499', 'Using lawn and garden services, n.e.c.*'),
+ ('t0905', 'Vehicle Maint. & Repair Services (not done by self)'),
+ ('t090501', 'Using vehicle maintenance or repair services'),
+ ('t090502', 'Waiting associated with vehicle main. or repair svcs'),
+ ('t090599', 'Using vehicle maint. & repair svcs, n.e.c.*'),
+ ('t0999', 'Household Services, n.e.c.*'),
+ ('t099999', 'Using household services, n.e.c.*'),
+ ('t10', 'Government Services & Civic Obligations'),
+ ('t1001', 'Using Government Services'),
+ ('t100101', 'Using police and fire services'),
+ ('t100102', 'Using social services'),
+ ('t100103', 'Obtaining licenses & paying fines, fees, taxes'),
+ ('t100199', 'Using government services, n.e.c.*'),
+ ('t1002', 'Civic Obligations & Participation'),
+ ('t100201', 'Civic obligations & participation'),
+ ('t100299', 'Civic obligations & participation, n.e.c.*'),
+ ('t1003', 'Waiting Associated w/Govt Svcs or Civic Obligations'),
+ ('t100304', 'Waiting associated with using government services'),
+ ('t100305', 'Waiting associated with civic obligations & participation'),
+ ('t100399', 'Waiting assoc. w/govt svcs or civic obligations, n.e.c.*'),
+ ('t1004', 'Security Procedures Rel. to Govt Svcs/Civic Obligations'),
+ ('t100401', 'Security procedures rel. to govt svcs/civic obligations'),
+ ('t100499',
+ 'Security procedures rel. to govt svcs/civic obligations, n.e.c.*'),
+ ('t1099', 'Government Services, n.e.c.*'),
+ ('t109999', 'Government services, n.e.c.*'),
+ ('t11', 'Eating and Drinking'),
+ ('t1101', 'Eating and Drinking'),
+ ('t110101', 'Eating and drinking'),
+ ('t110199', 'Eating and drinking, n.e.c.*'),
+ ('t1102', 'Waiting associated with eating & drinking'),
+ ('t110201', 'Waiting associated w/eating & drinking'),
+ ('t110299', 'Waiting associated with eating & drinking, n.e.c.*'),
+ ('t1199', 'Eating and Drinking, n.e.c.*'),
+ ('t119999', 'Eating and drinking, n.e.c.*'),
+ ('t12', 'Socializing, Relaxing, and Leisure'),
+ ('t1201', 'Socializing and Communicating'),
+ ('t120101', 'Socializing and communicating with others'),
+ ('t120199', 'Socializing and communicating, n.e.c.*'),
+ ('t1202', 'Attending or Hosting Social Events'),
+ ('t120201', 'Attending or hosting parties/receptions/ceremonies'),
+ ('t120202', 'Attending meetings for personal interest (not volunteering)'),
+ ('t120299', 'Attending/hosting social events, n.e.c.*'),
+ ('t1203', 'Relaxing and Leisure'),
+ ('t120301', 'Relaxing, thinking'),
+ ('t120302', 'Tobacco and drug use'),
+ ('t120303', 'Television and movies (not religious)'),
+ ('t120304', 'Television (religious)'),
+ ('t120305', 'Listening to the radio'),
+ ('t120306', 'Listening to/playing music (not radio)'),
+ ('t120307', 'Playing games'),
+ ('t120308', 'Computer use for leisure (excluding games)'),
+ ('t120309', 'Arts and crafts as a hobby'),
+ ('t120310', 'Collecting as a hobby'),
+ ('t120311', 'Hobbies, except arts & crafts and collecting'),
+ ('t120312', 'Reading for personal interest'),
+ ('t120313', 'Writing for personal interest'),
+ ('t120399', 'Relaxing and leisure, n.e.c.*'),
+ ('t1204', 'Arts and Entertainment (other than sports)'),
+ ('t120401', 'Attending performing arts'),
+ ('t120402', 'Attending museums'),
+ ('t120403', 'Attending movies/film'),
+ ('t120404', 'Attending gambling establishments'),
+ ('t120405', 'Security procedures rel. to arts & entertainment'),
+ ('t120499', 'Arts and entertainment, n.e.c.*'),
+ ('t1205', 'Waiting Associated with Socializing, Relaxing, and Leisure'),
+ ('t120501', 'Waiting assoc. w/socializing & communicating'),
+ ('t120502', 'Waiting assoc. w/attending/hosting social events'),
+ ('t120503', 'Waiting associated with relaxing/leisure'),
+ ('t120504', 'Waiting associated with arts & entertainment'),
+ ('t120599', 'Waiting associated with socializing, n.e.c.*'),
+ ('t1299', 'Socializing, Relaxing, and Leisure, n.e.c.*'),
+ ('t129999', 'Socializing, relaxing, and leisure, n.e.c.*'),
+ ('t13', 'Sports, Exercise, and Recreation'),
+ ('t1301', 'Participating in Sports, Exercise, or Recreation'),
+ ('t130101', 'Doing aerobics'),
+ ('t130102', 'Playing baseball'),
+ ('t130103', 'Playing basketball'),
+ ('t130104', 'Biking'),
+ ('t130105', 'Playing billiards'),
+ ('t130106', 'Boating'),
+ ('t130107', 'Bowling'),
+ ('t130108', 'Climbing, spelunking, caving'),
+ ('t130109', 'Dancing'),
+ ('t130110', 'Participating in equestrian sports'),
+ ('t130111', 'Fencing'),
+ ('t130112', 'Fishing'),
+ ('t130113', 'Playing football'),
+ ('t130114', 'Golfing'),
+ ('t130115', 'Doing gymnastics'),
+ ('t130116', 'Hiking'),
+ ('t130117', 'Playing hockey'),
+ ('t130118', 'Hunting'),
+ ('t130119', 'Participating in martial arts'),
+ ('t130120', 'Playing racquet sports'),
+ ('t130121', 'Participating in rodeo competitions'),
+ ('t130122', 'Rollerblading'),
+ ('t130123', 'Playing rugby'),
+ ('t130124', 'Running'),
+ ('t130125', 'Skiing, ice skating, snowboarding'),
+ ('t130126', 'Playing soccer'),
+ ('t130127', 'Softball'),
+ ('t130128', 'Using cardiovascular equipment'),
+ ('t130129', 'Vehicle touring/racing'),
+ ('t130130', 'Playing volleyball'),
+ ('t130131', 'Walking'),
+ ('t130132', 'Participating in water sports'),
+ ('t130133', 'Weightlifting/strength training'),
+ ('t130134', 'Working out, unspecified'),
+ ('t130135', 'Wrestling'),
+ ('t130136', 'Doing yoga'),
+ ('t130199', 'Playing sports n.e.c.*'),
+ ('t1302', 'Attending Sporting/Recreational Events'),
+ ('t130201', 'Watching aerobics'),
+ ('t130202', 'Watching baseball'),
+ ('t130203', 'Watching basketball'),
+ ('t130204', 'Watching biking'),
+ ('t130205', 'Watching billiards'),
+ ('t130206', 'Watching boating'),
+ ('t130207', 'Watching bowling'),
+ ('t130208', 'Watching climbing, spelunking, caving'),
+ ('t130209', 'Watching dancing'),
+ ('t130210', 'Watching equestrian sports'),
+ ('t130211', 'Watching fencing'),
+ ('t130212', 'Watching fishing'),
+ ('t130213', 'Watching football'),
+ ('t130214', 'Watching golfing'),
+ ('t130215', 'Watching gymnastics'),
+ ('t130216', 'Watching hockey'),
+ ('t130217', 'Watching martial arts'),
+ ('t130218', 'Watching racquet sports'),
+ ('t130219', 'Watching rodeo competitions'),
+ ('t130220', 'Watching rollerblading'),
+ ('t130221', 'Watching rugby'),
+ ('t130222', 'Watching running'),
+ ('t130223', 'Watching skiing, ice skating, snowboarding'),
+ ('t130224', 'Watching soccer'),
+ ('t130225', 'Watching softball'),
+ ('t130226', 'Watching vehicle touring/racing'),
+ ('t130227', 'Watching volleyball'),
+ ('t130228', 'Watching walking'),
+ ('t130229', 'Watching water sports'),
+ ('t130230', 'Watching weightlifting/strength training'),
+ ('t130231', 'Watching people working out, unspecified'),
+ ('t130232', 'Watching wrestling'),
+ ('t130299', 'Attending sporting events, n.e.c.*'),
+ ('t1303', 'Waiting Associated with Sports, Exercise, & Recreation'),
+ ('t130301', 'Waiting related to playing sports or exercising'),
+ ('t130302', 'Waiting related to attending sporting events'),
+ ('t130399', 'Waiting associated with sports, exercise, & recreation, n.e.c.*'),
+ ('t1304', 'Security Procedures Rel. to Sports, Exercise, & Recreation'),
+ ('t130401', 'Security related to playing sports or exercising'),
+ ('t130402', 'Security related to attending sporting events'),
+ ('t130499', 'Security related to sports, exercise, & recreation, n.e.c.*'),
+ ('t1399', 'Sports, Exercise, & Recreation, n.e.c.*'),
+ ('t139999', 'Sports, exercise, & recreation, n.e.c.*'),
+ ('t14', 'Religious and Spiritual Activities'),
+ ('t1401', 'Religious/Spiritual Practices'),
+ ('t140101', 'Attending religious services'),
+ ('t140102', 'Participation in religious practices'),
+ ('t140103', 'Waiting associated w/religious & spiritual activities'),
+ ('t140104', 'Security procedures rel. to religious & spiritual activities'),
+ ('t140105', 'Religious education activities'),
+ ('t1499', 'Religious and Spiritual Activities, n.e.c.*'),
+ ('t149999', 'Religious and spiritual activities, n.e.c.*'),
+ ('t15', 'Volunteer Activities'),
+ ('t1501', 'Administrative & Support Activities'),
+ ('t150101', 'Computer use'),
+ ('t150102', 'Organizing and preparing'),
+ ('t150103', 'Reading'),
+ ('t150104', 'Telephone calls (except hotline counseling)'),
+ ('t150105', 'Writing'),
+ ('t150106', 'Fundraising'),
+ ('t150199', 'Administrative & support activities, n.e.c.*'),
+ ('t1502', 'Social Service & Care Activities (Except Medical)'),
+ ('t150201', 'Food preparation, presentation, clean-up'),
+ ('t150202', 'Collecting & delivering clothing & other goods'),
+ ('t150203', 'Providing care'),
+ ('t150204', 'Teaching, leading, counseling, mentoring'),
+ ('t150299', 'Social service & care activities, n.e.c.*'),
+ ('t1503', 'Indoor & Outdoor Maintenance, Building, & Clean-up Activities'),
+ ('t150301', 'Building houses, wildlife sites, & other structures'),
+ ('t150302', 'Indoor & outdoor maintenance, repair, & clean-up'),
+ ('t150399',
+ 'Indoor & outdoor maintenance, building & clean-up activities, n.e.c.*'),
+ ('t1504', 'Participating in Performance & Cultural Activities'),
+ ('t150401', 'Performing'),
+ ('t150402', 'Serving at volunteer events & cultural activities'),
+ ('t150499', 'Participating in performance & cultural activities, n.e.c.*'),
+ ('t1505', 'Attending Meetings, Conferences, & Training'),
+ ('t150501', 'Attending meetings, conferences, & training'),
+ ('t150599', 'Attending meetings, conferences, & training, n.e.c.*'),
+ ('t1506', 'Public Health & Safety Activities'),
+ ('t150601', 'Public health activities'),
+ ('t150602', 'Public safety activities'),
+ ('t150699', 'Public health & safety activities, n.e.c.*'),
+ ('t1507', 'Waiting Associated with Volunteer Activities'),
+ ('t150701', 'Waiting associated with volunteer activities'),
+ ('t150799', 'Waiting associated with volunteer activities, n.e.c.*'),
+ ('t1508', 'Security procedures related to volunteer activities'),
+ ('t150801', 'Security procedures related to volunteer activities'),
+ ('t150899', 'Security procedures related to volunteer activities, n.e.c.*'),
+ ('t1599', 'Volunteer Activities, n.e.c.*'),
+ ('t159999', 'Volunteer activities, n.e.c.*'),
+ ('t16', 'Telephone Calls'),
+ ('t1601', 'Telephone Calls (to or from)'),
+ ('t160101', 'Telephone calls to/from family members'),
+ ('t160102', 'Telephone calls to/from friends, neighbors, or acquaintances'),
+ ('t160103', 'Telephone calls to/from education services providers'),
+ ('t160104', 'Telephone calls to/from salespeople'),
+ ('t160105',
+ 'Telephone calls to/from professional or personal care svcs providers'),
+ ('t160106', 'Telephone calls to/from household services providers'),
+ ('t160107', 'Telephone calls to/from paid child or adult care providers'),
+ ('t160108', 'Telephone calls to/from government officials'),
+ ('t160199', 'Telephone calls (to or from), n.e.c.*'),
+ ('t1602', 'Waiting Associated with Telephone Calls'),
+ ('t160201', 'Waiting associated with telephone calls'),
+ ('t160299', 'Waiting associated with telephone calls, n.e.c.*'),
+ ('t1699', 'Telephone Calls, n.e.c.*'),
+ ('t169999', 'Telephone calls, n.e.c.*'),
+ ('t18', 'Traveling'),
+ ('t1801', 'Travel Related to Personal Care'),
+ ('t180101', 'Travel related to personal care'),
+ ('t180199', 'Travel related to personal care, n.e.c.*'),
+ ('t1802', 'Travel Related to Household Activities'),
+ ('t180201', 'Travel related to housework'),
+ ('t180202', 'Travel related to food & drink prep., clean-up, & presentation'),
+ ('t180203', 'Travel related to interior maintenance, repair, & decoration'),
+ ('t180204', 'Travel related to exterior maintenance, repair, & decoration'),
+ ('t180205', 'Travel related to lawn, garden, and houseplant care'),
+ ('t180206', 'Travel related to care for animals and pets (not vet care)'),
+ ('t180207', 'Travel related to vehicle care & maintenance (by self)'),
+ ('t180208',
+ 'Travel related to appliance, tool, and toy set-up, repair, & maintenance '
+ '(by self)'),
+ ('t180209', 'Travel related to household management'),
+ ('t180299', 'Travel related to household activities, n.e.c.*'),
+ ('t1803', 'Travel Related to Caring For & Helping HH Members'),
+ ('t180301', 'Travel related to caring for & helping hh children'),
+ ('t180302', "Travel related to hh children's education"),
+ ('t180303', "Travel related to hh children's health"),
+ ('t180304', 'Travel related to caring for hh adults'),
+ ('t180305', 'Travel related to helping hh adults'),
+ ('t180399', 'Travel rel. to caring for & helping hh members, n.e.c.*'),
+ ('t1804', 'Travel Related to Caring For & Helping Nonhh Members'),
+ ('t180401', 'Travel related to caring for and helping nonhh children'),
+ ('t180402', "Travel related to nonhh children's education"),
+ ('t180403', "Travel related to nonhh children's health"),
+ ('t180404', 'Travel related to caring for nonhh adults'),
+ ('t180405', 'Travel related to helping nonhh adults'),
+ ('t180499', 'Travel rel. to caring for & helping nonhh members, n.e.c.*'),
+ ('t1805', 'Travel Related to Work'),
+ ('t180501', 'Travel related to working'),
+ ('t180502', 'Travel related to work-related activities'),
+ ('t180503', 'Travel related to income-generating activities'),
+ ('t180504', 'Travel related to job search & interviewing'),
+ ('t180599', 'Travel related to work, n.e.c.*'),
+ ('t1806', 'Travel Related to Education'),
+ ('t180601', 'Travel related to taking class'),
+ ('t180602', 'Travel related to extracurricular activities (ex. Sports)'),
+ ('t180603', 'Travel related to research/homework'),
+ ('t180604', 'Travel related to registration/administrative activities'),
+ ('t180699', 'Travel related to education, n.e.c.*'),
+ ('t1807', 'Travel Related to Consumer Purchases'),
+ ('t180701', 'Travel related to grocery shopping'),
+ ('t180702', 'Travel related to purchasing gas'),
+ ('t180703', 'Travel related to purchasing food (not groceries)'),
+ ('t180704', 'Travel related to shopping, ex groceries, food, and gas'),
+ ('t180799', 'Travel related to consumer purchases, n.e.c.*'),
+ ('t1808', 'Travel Related to Using Professional and Personal Care Services'),
+ ('t180801', 'Travel related to using childcare services'),
+ ('t180802', 'Travel related to using financial services and banking'),
+ ('t180803', 'Travel related to using legal services'),
+ ('t180804', 'Travel related to using medical services'),
+ ('t180805', 'Travel related to using personal care services'),
+ ('t180806', 'Travel related to using real estate services'),
+ ('t180807', 'Travel related to using veterinary services'),
+ ('t180899', 'Travel rel. to using prof. & personal care services, n.e.c.*'),
+ ('t1809', 'Travel Related to Using Household Services'),
+ ('t180901', 'Travel related to using household services'),
+ ('t180902',
+ 'Travel related to using home main./repair/décor./construction svcs'),
+ ('t180903', 'Travel related to using pet services (not vet)'),
+ ('t180904', 'Travel related to using lawn and garden services'),
+ ('t180905', 'Travel related to using vehicle maintenance & repair services'),
+ ('t180999', 'Travel related to using household services, n.e.c.*'),
+ ('t1810', 'Travel Related to Using Govt Services & Civic Obligations'),
+ ('t181001', 'Travel related to using government services'),
+ ('t181002', 'Travel related to civic obligations & participation'),
+ ('t181099', 'Travel rel. to govt svcs & civic obligations, n.e.c.*'),
+ ('t1811', 'Travel Related to Eating and Drinking'),
+ ('t181101', 'Travel related to eating and drinking'),
+ ('t181199', 'Travel related to eating and drinking, n.e.c.*'),
+ ('t1812', 'Travel Related to Socializing, Relaxing, and Leisure'),
+ ('t181201', 'Travel related to socializing and communicating'),
+ ('t181202', 'Travel related to attending or hosting social events'),
+ ('t181203', 'Travel related to relaxing and leisure'),
+ ('t181204', 'Travel related to arts and entertainment'),
+ ('t181205', 'Travel as a form of entertainment'),
+ ('t181299', 'Travel rel. to socializing, relaxing, & leisure, n.e.c.*'),
+ ('t1813', 'Travel Related to Sports, Exercise, & Recreation'),
+ ('t181301', 'Travel related to participating in sports/exercise/recreation'),
+ ('t181302', 'Travel related to attending sporting/recreational events'),
+ ('t181399', 'Travel related to sports, exercise, & recreation, n.e.c.*'),
+ ('t1814', 'Travel Related to Religious/Spiritual Activities'),
+ ('t181401', 'Travel related to religious/spiritual practices'),
+ ('t181499', 'Travel rel. to religious/spiritual activities, n.e.c.*'),
+ ('t1815', 'Travel Related to Volunteer Activities'),
+ ('t181501', 'Travel related to volunteering'),
+ ('t181599', 'Travel related to volunteer activities, n.e.c.*'),
+ ('t1816', 'Travel Related to Telephone Calls'),
+ ('t181601', 'Travel related to phone calls'),
+ ('t181699', 'Travel rel. to phone calls, n.e.c.*'),
+ ('t1818', 'Security Procedures Related to Traveling'),
+ ('t181801', 'Security procedures related to traveling'),
+ ('t181899', 'Security procedures related to traveling, n.e.c.*'),
+ ('t1899', 'Traveling, n.e.c.*'),
+ ('t189999', 'Traveling, n.e.c.*'),
+ ('t50', 'Data Codes'),
+ ('t5001', 'Unable to Code'),
+ ('t500101', 'Insufficient detail in verbatim'),
+ ('t500103', 'Missing travel or destination'),
+ ('t500105',
+ 'Respondent refused to provide information/"none of your business"'),
+ ('t500106', "Gap/can't remember"),
+ ('t500107', 'Unable to code activity at 1st tier'),
+ ('t500199', 'Data codes, n.e.c.*'),
+ ('t5099', 'Data codes, n.e.c.*')]
+codes_dict = {num: desc for (num, desc) in atus_codes_list}
+categories = {num: desc for (num, desc) in atus_codes_list if len(num)==3}
+sub_categories = {num: desc for (num, desc) in atus_codes_list if len(num)==5}
+activities = {num: desc for (num, desc) in atus_codes_list if len(num)==7}
+#pprint(atus_codes_list)
diff --git a/requirements.txt b/requirements.txt
index d7129f4..8f5a407 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
pandas
ipython[notebook]
matplotlib
+pytest
diff --git a/test_activities.txt b/test_activities.txt
new file mode 100644
index 0000000..ae30033
--- /dev/null
+++ b/test_activities.txt
@@ -0,0 +1,25 @@
+01 Personal Care
+ 01 Sleeping
+ 01 Sleeping
+ 02 Sleeplessness
+ 99 Sleeping, n.e.c.*
+ 02 Grooming
+ 01 Washing, dressing and grooming oneself
+ 99 Grooming, n.e.c.*
+ 03 Health-related Self Care
+ 01 Health-related self care
+ 99 Self care, n.e.c.*
+ 04 Personal Activities
+ 01 Personal/Private activities
+ 99 Personal activities, n.e.c.*
+ 05 Personal Care Emergencies
+ 01 Personal emergencies
+ 99 Personal care emergencies, n.e.c.*
+ 99 Personal Care, n.e.c.*
+ 99 Personal care, n.e.c.*
+02 Household Activities
+ 01 Housework
+ 01 Interior cleaning
+ 02 Laundry
+ 03 Sewing, repairing, & maintaining textiles
+ 04 Storing interior hh items, inc. food
diff --git a/test_atus.py b/test_atus.py
new file mode 100644
index 0000000..bacdfad
--- /dev/null
+++ b/test_atus.py
@@ -0,0 +1,6 @@
+import atus
+
+
+def test_load_zip():
+ summary = atus.open_zip('atussum_2013')
+ assert len(summary) == 11385