In [1]:
from __future__ import print_function, division

import nsfg3

In [2]:
df = nsfg3.ReadFemResp2013()
len(df)


Out[2]:
5601

In [3]:
df.evrmarry.value_counts()


Out[3]:
0    3149
1    2452
Name: evrmarry, dtype: int64

In [4]:
len(df[(df.cmbirth >= 380) & (df.cmbirth <= 1340)])


Out[4]:
5601

In [5]:
len(df[(df.cmmarrhx >= 380) & (df.cmmarrhx <= 1340)])


Out[5]:
2322

In [6]:
len(df[(df.cmmarrhx.isnull())])


Out[6]:
3166

In [7]:
df.cmintvw.value_counts().sort_index()


Out[7]:
1341     14
1342    264
1343    340
1344    135
1345    243
1346    258
1347    208
1348    269
1349    274
1350    196
1351    271
1352    260
1353    119
1354    298
1355    316
1356     81
1357    256
1358    310
1359    210
1360    295
1361    269
1362    188
1363    260
1364    248
1365     19
Name: cmintvw, dtype: int64

In [8]:
df.finalwgt.value_counts().sort_index()


Out[8]:
1714.541000     73
1725.042901      1
1744.079636      1
1773.660508      1
1782.775283      1
1786.909427      1
1799.504176      1
1818.364164      1
1821.723145      1
1834.350206      1
1841.945923      2
1846.067783      1
1846.925273      1
1847.627518      1
1855.796684      1
1875.551475      1
1892.975113      1
1902.769234      1
1906.921577      1
1911.894339      1
1922.565473      1
1923.002307      2
1935.035163      1
1936.254912      1
1942.842095      1
1946.637131      1
1947.545965      1
1950.950717      1
1953.289502      1
1955.354795      1
                ..
65434.935047     1
65877.913963     1
66813.412480     1
68052.286246     1
68893.622077     1
69009.644567     1
69105.740233     1
69684.106393     1
71590.302740     1
72212.151851     1
73610.028928     1
75165.281096     1
75442.078112     1
75935.888610     1
75994.283195     1
77171.057698     1
79619.733302     1
79685.603734     1
81142.554523     1
83023.719717     1
83152.787752     1
83990.336806     1
84143.242142     1
84212.991861     1
84543.255294     1
84639.511120     1
84726.199969     1
84962.381747     1
85202.502398     1
85207.950000    50
Name: finalwgt, dtype: int64

In [ ]:


In [ ]: