Created
May 15, 2016 22:40
-
-
Save borowis/e229c3effc48c4712479aa95f6f75c04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Oct 19 2015, 18:04:42) | |
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
Anaconda is brought to you by Continuum Analytics. | |
Please check out: http://continuum.io/thanks and https://anaconda.org | |
>>> >>> >>> >>> >>> main() | |
# of observations is 43093 | |
# of variables is 3008 | |
__main__:59: FutureWarning: convert_objects is deprecated. Use the data-type specific converters pd.to_datetime, pd.to_timedelta and pd.to_numeric. | |
counts for S3BQ1A6 -- ever used cocaine/crack( 1 : Yes 2 : No 9 : Unknown ) | |
1 2528 | |
2 40225 | |
9 340 | |
Name: S3BQ1A6, dtype: int64 | |
percentages for S3BQ1A6 -- ever used cocaine/crack( 1 : Yes 2 : No 9 : Unknown ) | |
1 0.058664 | |
2 0.933446 | |
9 0.007890 | |
Name: S3BQ1A6, dtype: float64 | |
counts for S3BQ1A9A -- ever used heroin( 1 : Yes 2 : No 9 : Unknown ) | |
1 150 | |
2 42643 | |
9 300 | |
Name: S3BQ1A9A, dtype: int64 | |
percentages for S3BQ1A9A -- ever used heroin( 1 : Yes 2 : No 9 : Unknown ) | |
1 0.003481 | |
2 0.989557 | |
9 0.006962 | |
Name: S3BQ1A9A, dtype: float64 | |
counts for S3BQ1A5 -- ever used cannabis( 1 : Yes 2 : No 9 : Unknown ) | |
1 8172 | |
2 34553 | |
9 368 | |
Name: S3BQ1A5, dtype: int64 | |
percentages for S3BQ1A5 -- ever used cannabis( 1 : Yes 2 : No 9 : Unknown ) | |
1 0.189636 | |
2 0.801824 | |
9 0.008540 | |
Name: S3BQ1A5, dtype: float64 | |
counts for S3BD5Q2F -- age when began using cannabis most( 5-64 : Age BL : NA, never or unknown if ever used cannabis 99 : Unknown ) | |
5.000000 1 | |
6.000000 3 | |
7.000000 2 | |
8.000000 7 | |
9.000000 6 | |
10.000000 11 | |
11.000000 17 | |
12.000000 70 | |
13.000000 174 | |
14.000000 328 | |
15.000000 562 | |
16.000000 1028 | |
17.000000 1012 | |
18.000000 1258 | |
19.000000 774 | |
20.000000 683 | |
21.000000 421 | |
22.000000 332 | |
23.000000 209 | |
24.000000 140 | |
25.000000 241 | |
26.000000 101 | |
27.000000 74 | |
28.000000 93 | |
29.000000 44 | |
30.000000 121 | |
31.000000 27 | |
32.000000 38 | |
33.000000 31 | |
34.000000 15 | |
35.000000 79 | |
36.000000 18 | |
37.000000 15 | |
38.000000 17 | |
39.000000 8 | |
40.000000 37 | |
41.000000 4 | |
42.000000 9 | |
43.000000 9 | |
44.000000 5 | |
45.000000 15 | |
46.000000 3 | |
47.000000 3 | |
48.000000 3 | |
49.000000 1 | |
50.000000 14 | |
51.000000 4 | |
52.000000 4 | |
53.000000 3 | |
54.000000 1 | |
55.000000 2 | |
57.000000 1 | |
59.000000 1 | |
60.000000 2 | |
64.000000 1 | |
99.000000 90 | |
Name: S3BD5Q2F, dtype: int64 | |
percentages for S3BD5Q2F -- age when began using cannabis most( 5-64 : Age BL : NA, never or unknown if ever used cannabis 99 : Unknown ) | |
5.000000 0.000023 | |
6.000000 0.000070 | |
7.000000 0.000046 | |
8.000000 0.000162 | |
9.000000 0.000139 | |
10.000000 0.000255 | |
11.000000 0.000394 | |
12.000000 0.001624 | |
13.000000 0.004038 | |
14.000000 0.007611 | |
15.000000 0.013042 | |
16.000000 0.023855 | |
17.000000 0.023484 | |
18.000000 0.029193 | |
19.000000 0.017961 | |
20.000000 0.015849 | |
21.000000 0.009770 | |
22.000000 0.007704 | |
23.000000 0.004850 | |
24.000000 0.003249 | |
25.000000 0.005593 | |
26.000000 0.002344 | |
27.000000 0.001717 | |
28.000000 0.002158 | |
29.000000 0.001021 | |
30.000000 0.002808 | |
31.000000 0.000627 | |
32.000000 0.000882 | |
33.000000 0.000719 | |
34.000000 0.000348 | |
35.000000 0.001833 | |
36.000000 0.000418 | |
37.000000 0.000348 | |
38.000000 0.000394 | |
39.000000 0.000186 | |
40.000000 0.000859 | |
41.000000 0.000093 | |
42.000000 0.000209 | |
43.000000 0.000209 | |
44.000000 0.000116 | |
45.000000 0.000348 | |
46.000000 0.000070 | |
47.000000 0.000070 | |
48.000000 0.000070 | |
49.000000 0.000023 | |
50.000000 0.000325 | |
51.000000 0.000093 | |
52.000000 0.000093 | |
53.000000 0.000070 | |
54.000000 0.000023 | |
55.000000 0.000046 | |
57.000000 0.000023 | |
59.000000 0.000023 | |
60.000000 0.000046 | |
64.000000 0.000023 | |
99.000000 0.002089 | |
Name: S3BD5Q2F, dtype: float64 | |
counts for S3CD9Q13A -- age at onset of heroin abuse( BL : NA, didnt meet symptom criteria for lifetime heroin abuse 9-62 : Age 99 : Unknown ) | |
9.000000 1 | |
12.000000 1 | |
13.000000 1 | |
14.000000 2 | |
15.000000 1 | |
16.000000 7 | |
17.000000 6 | |
18.000000 8 | |
19.000000 12 | |
20.000000 6 | |
21.000000 5 | |
22.000000 6 | |
23.000000 4 | |
24.000000 4 | |
25.000000 4 | |
26.000000 1 | |
27.000000 4 | |
28.000000 4 | |
29.000000 1 | |
30.000000 3 | |
31.000000 1 | |
32.000000 2 | |
34.000000 1 | |
35.000000 1 | |
37.000000 1 | |
38.000000 2 | |
39.000000 2 | |
41.000000 1 | |
45.000000 2 | |
48.000000 1 | |
62.000000 1 | |
99.000000 7 | |
Name: S3CD9Q13A, dtype: int64 | |
percentages for S3CD9Q13A -- age at onset of heroin abuse( BL : NA, didnt meet symptom criteria for lifetime heroin abuse 9-62 : Age 99 : Unknown ) | |
9.000000 0.000023 | |
12.000000 0.000023 | |
13.000000 0.000023 | |
14.000000 0.000046 | |
15.000000 0.000023 | |
16.000000 0.000162 | |
17.000000 0.000139 | |
18.000000 0.000186 | |
19.000000 0.000278 | |
20.000000 0.000139 | |
21.000000 0.000116 | |
22.000000 0.000139 | |
23.000000 0.000093 | |
24.000000 0.000093 | |
25.000000 0.000093 | |
26.000000 0.000023 | |
27.000000 0.000093 | |
28.000000 0.000093 | |
29.000000 0.000023 | |
30.000000 0.000070 | |
31.000000 0.000023 | |
32.000000 0.000046 | |
34.000000 0.000023 | |
35.000000 0.000023 | |
37.000000 0.000023 | |
38.000000 0.000046 | |
39.000000 0.000046 | |
41.000000 0.000023 | |
45.000000 0.000046 | |
48.000000 0.000023 | |
62.000000 0.000023 | |
99.000000 0.000162 | |
Name: S3CD9Q13A, dtype: float64 | |
counts for S3BD9Q2F -- age when began using heroin most( 99 : Unknown BL : NA, never or unknown if ever used heroin 12-62 : Age ) | |
12.000000 1 | |
13.000000 2 | |
14.000000 2 | |
15.000000 3 | |
16.000000 4 | |
17.000000 12 | |
18.000000 16 | |
19.000000 18 | |
20.000000 15 | |
21.000000 6 | |
22.000000 8 | |
23.000000 7 | |
24.000000 3 | |
25.000000 11 | |
26.000000 7 | |
27.000000 3 | |
28.000000 2 | |
29.000000 2 | |
30.000000 8 | |
31.000000 2 | |
32.000000 1 | |
33.000000 1 | |
34.000000 1 | |
36.000000 2 | |
37.000000 4 | |
39.000000 3 | |
40.000000 1 | |
42.000000 1 | |
47.000000 1 | |
48.000000 1 | |
62.000000 1 | |
99.000000 1 | |
Name: S3BD9Q2F, dtype: int64 | |
percentages for S3BD9Q2F -- age when began using heroin most( 99 : Unknown BL : NA, never or unknown if ever used heroin 12-62 : Age ) | |
12.000000 0.000023 | |
13.000000 0.000046 | |
14.000000 0.000046 | |
15.000000 0.000070 | |
16.000000 0.000093 | |
17.000000 0.000278 | |
18.000000 0.000371 | |
19.000000 0.000418 | |
20.000000 0.000348 | |
21.000000 0.000139 | |
22.000000 0.000186 | |
23.000000 0.000162 | |
24.000000 0.000070 | |
25.000000 0.000255 | |
26.000000 0.000162 | |
27.000000 0.000070 | |
28.000000 0.000046 | |
29.000000 0.000046 | |
30.000000 0.000186 | |
31.000000 0.000046 | |
32.000000 0.000023 | |
33.000000 0.000023 | |
34.000000 0.000023 | |
36.000000 0.000046 | |
37.000000 0.000093 | |
39.000000 0.000070 | |
40.000000 0.000023 | |
42.000000 0.000023 | |
47.000000 0.000023 | |
48.000000 0.000023 | |
62.000000 0.000023 | |
99.000000 0.000023 | |
Name: S3BD9Q2F, dtype: float64 | |
counts for S3CD5Q13A -- age at onset of cannabis abuse( 5-64 : Age BL : NA, didnt meet symptom criteria for lifetime cannabis abuse 99 : Unknown ) | |
5.000000 11 | |
6.000000 3 | |
7.000000 3 | |
9.000000 3 | |
10.000000 6 | |
11.000000 7 | |
12.000000 26 | |
13.000000 76 | |
14.000000 130 | |
15.000000 203 | |
16.000000 442 | |
17.000000 431 | |
18.000000 472 | |
19.000000 269 | |
20.000000 218 | |
21.000000 163 | |
22.000000 109 | |
23.000000 91 | |
24.000000 61 | |
25.000000 111 | |
26.000000 44 | |
27.000000 30 | |
28.000000 44 | |
29.000000 10 | |
30.000000 47 | |
31.000000 13 | |
32.000000 20 | |
33.000000 14 | |
34.000000 15 | |
35.000000 22 | |
36.000000 5 | |
37.000000 11 | |
38.000000 8 | |
39.000000 3 | |
40.000000 11 | |
41.000000 3 | |
42.000000 5 | |
44.000000 4 | |
45.000000 8 | |
46.000000 1 | |
47.000000 1 | |
48.000000 2 | |
50.000000 2 | |
51.000000 1 | |
54.000000 1 | |
55.000000 2 | |
56.000000 1 | |
60.000000 1 | |
63.000000 1 | |
64.000000 1 | |
99.000000 92 | |
Name: S3CD5Q13A, dtype: int64 | |
percentages for S3CD5Q13A -- age at onset of cannabis abuse( 5-64 : Age BL : NA, didnt meet symptom criteria for lifetime cannabis abuse 99 : Unknown ) | |
5.000000 0.000255 | |
6.000000 0.000070 | |
7.000000 0.000070 | |
9.000000 0.000070 | |
10.000000 0.000139 | |
11.000000 0.000162 | |
12.000000 0.000603 | |
13.000000 0.001764 | |
14.000000 0.003017 | |
15.000000 0.004711 | |
16.000000 0.010257 | |
17.000000 0.010002 | |
18.000000 0.010953 | |
19.000000 0.006242 | |
20.000000 0.005059 | |
21.000000 0.003783 | |
22.000000 0.002529 | |
23.000000 0.002112 | |
24.000000 0.001416 | |
25.000000 0.002576 | |
26.000000 0.001021 | |
27.000000 0.000696 | |
28.000000 0.001021 | |
29.000000 0.000232 | |
30.000000 0.001091 | |
31.000000 0.000302 | |
32.000000 0.000464 | |
33.000000 0.000325 | |
34.000000 0.000348 | |
35.000000 0.000511 | |
36.000000 0.000116 | |
37.000000 0.000255 | |
38.000000 0.000186 | |
39.000000 0.000070 | |
40.000000 0.000255 | |
41.000000 0.000070 | |
42.000000 0.000116 | |
44.000000 0.000093 | |
45.000000 0.000186 | |
46.000000 0.000023 | |
47.000000 0.000023 | |
48.000000 0.000046 | |
50.000000 0.000046 | |
51.000000 0.000023 | |
54.000000 0.000023 | |
55.000000 0.000046 | |
56.000000 0.000023 | |
60.000000 0.000023 | |
63.000000 0.000023 | |
64.000000 0.000023 | |
99.000000 0.002135 | |
Name: S3CD5Q13A, dtype: float64 | |
counts for S3CD6Q13A -- age at onset of cocaine abuse( BL : NA, didnt meet symptom criteria for lifetime cocaine abuse 99 : Unknown 5-52 : Age ) | |
5.000000 3 | |
7.000000 1 | |
8.000000 1 | |
10.000000 1 | |
12.000000 1 | |
13.000000 1 | |
14.000000 14 | |
15.000000 25 | |
16.000000 59 | |
17.000000 63 | |
18.000000 112 | |
19.000000 89 | |
20.000000 86 | |
21.000000 74 | |
22.000000 70 | |
23.000000 61 | |
24.000000 48 | |
25.000000 68 | |
26.000000 30 | |
27.000000 35 | |
28.000000 34 | |
29.000000 14 | |
30.000000 49 | |
31.000000 12 | |
32.000000 25 | |
33.000000 14 | |
34.000000 14 | |
35.000000 23 | |
36.000000 6 | |
37.000000 5 | |
38.000000 7 | |
39.000000 4 | |
40.000000 7 | |
41.000000 3 | |
42.000000 4 | |
43.000000 3 | |
44.000000 2 | |
45.000000 3 | |
46.000000 2 | |
47.000000 2 | |
48.000000 1 | |
52.000000 2 | |
99.000000 62 | |
Name: S3CD6Q13A, dtype: int64 | |
percentages for S3CD6Q13A -- age at onset of cocaine abuse( BL : NA, didnt meet symptom criteria for lifetime cocaine abuse 99 : Unknown 5-52 : Age ) | |
5.000000 0.000070 | |
7.000000 0.000023 | |
8.000000 0.000023 | |
10.000000 0.000023 | |
12.000000 0.000023 | |
13.000000 0.000023 | |
14.000000 0.000325 | |
15.000000 0.000580 | |
16.000000 0.001369 | |
17.000000 0.001462 | |
18.000000 0.002599 | |
19.000000 0.002065 | |
20.000000 0.001996 | |
21.000000 0.001717 | |
22.000000 0.001624 | |
23.000000 0.001416 | |
24.000000 0.001114 | |
25.000000 0.001578 | |
26.000000 0.000696 | |
27.000000 0.000812 | |
28.000000 0.000789 | |
29.000000 0.000325 | |
30.000000 0.001137 | |
31.000000 0.000278 | |
32.000000 0.000580 | |
33.000000 0.000325 | |
34.000000 0.000325 | |
35.000000 0.000534 | |
36.000000 0.000139 | |
37.000000 0.000116 | |
38.000000 0.000162 | |
39.000000 0.000093 | |
40.000000 0.000162 | |
41.000000 0.000070 | |
42.000000 0.000093 | |
43.000000 0.000070 | |
44.000000 0.000046 | |
45.000000 0.000070 | |
46.000000 0.000046 | |
47.000000 0.000046 | |
48.000000 0.000023 | |
52.000000 0.000046 | |
99.000000 0.001439 | |
Name: S3CD6Q13A, dtype: float64 | |
counts for S3BD6Q2F -- age when began using cocaine or crack most( 5-64 : Age BL : NA, never or unknown if ever used cocaine or crack 99 : Unknown ) | |
5.000000 2 | |
8.000000 1 | |
9.000000 1 | |
10.000000 1 | |
12.000000 4 | |
13.000000 6 | |
14.000000 20 | |
15.000000 48 | |
16.000000 99 | |
17.000000 150 | |
18.000000 250 | |
19.000000 206 | |
20.000000 249 | |
21.000000 188 | |
22.000000 172 | |
23.000000 132 | |
24.000000 116 | |
25.000000 206 | |
26.000000 66 | |
27.000000 68 | |
28.000000 70 | |
29.000000 28 | |
30.000000 131 | |
31.000000 21 | |
32.000000 37 | |
33.000000 22 | |
34.000000 20 | |
35.000000 66 | |
36.000000 11 | |
37.000000 10 | |
38.000000 14 | |
39.000000 7 | |
40.000000 24 | |
41.000000 8 | |
42.000000 6 | |
43.000000 3 | |
44.000000 9 | |
45.000000 10 | |
46.000000 5 | |
47.000000 4 | |
48.000000 3 | |
50.000000 4 | |
55.000000 1 | |
58.000000 1 | |
64.000000 1 | |
99.000000 27 | |
Name: S3BD6Q2F, dtype: int64 | |
percentages for S3BD6Q2F -- age when began using cocaine or crack most( 5-64 : Age BL : NA, never or unknown if ever used cocaine or crack 99 : Unknown ) | |
5.000000 0.000046 | |
8.000000 0.000023 | |
9.000000 0.000023 | |
10.000000 0.000023 | |
12.000000 0.000093 | |
13.000000 0.000139 | |
14.000000 0.000464 | |
15.000000 0.001114 | |
16.000000 0.002297 | |
17.000000 0.003481 | |
18.000000 0.005801 | |
19.000000 0.004780 | |
20.000000 0.005778 | |
21.000000 0.004363 | |
22.000000 0.003991 | |
23.000000 0.003063 | |
24.000000 0.002692 | |
25.000000 0.004780 | |
26.000000 0.001532 | |
27.000000 0.001578 | |
28.000000 0.001624 | |
29.000000 0.000650 | |
30.000000 0.003040 | |
31.000000 0.000487 | |
32.000000 0.000859 | |
33.000000 0.000511 | |
34.000000 0.000464 | |
35.000000 0.001532 | |
36.000000 0.000255 | |
37.000000 0.000232 | |
38.000000 0.000325 | |
39.000000 0.000162 | |
40.000000 0.000557 | |
41.000000 0.000186 | |
42.000000 0.000139 | |
43.000000 0.000070 | |
44.000000 0.000209 | |
45.000000 0.000232 | |
46.000000 0.000116 | |
47.000000 0.000093 | |
48.000000 0.000070 | |
50.000000 0.000093 | |
55.000000 0.000023 | |
58.000000 0.000023 | |
64.000000 0.000023 | |
99.000000 0.000627 | |
Name: S3BD6Q2F, dtype: float64 | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment