From 82835861d1c091b73223342048c4b37c33871aa6 Mon Sep 17 00:00:00 2001 From: jaanli Date: Thu, 17 Oct 2024 12:48:13 -0400 Subject: [PATCH] update for 2023 data --- ...ehold_and_individual_ACS_survey_data.ipynb | 2173 +++++++++++++++++ 1 file changed, 2173 insertions(+) create mode 100644 notebooks/241017-analyze_2023_household_and_individual_ACS_survey_data.ipynb diff --git a/notebooks/241017-analyze_2023_household_and_individual_ACS_survey_data.ipynb b/notebooks/241017-analyze_2023_household_and_individual_ACS_survey_data.ipynb new file mode 100644 index 0000000..f1cc582 --- /dev/null +++ b/notebooks/241017-analyze_2023_household_and_individual_ACS_survey_data.ipynb @@ -0,0 +1,2173 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "There's a new jupysql version available (0.10.14), you're running 0.10.10. To upgrade: pip install jupysql --upgrade\n", + "Deploy FastAPI apps for free on Ploomber Cloud! Learn more: https://ploomber.io/s/signup\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/Users/me/projects/american-community-survey/.venv/lib/python3.10/site-packages/sql/traits.py:20: FutureWarning: named_parameters: boolean values are now deprecated. Value True will be treated as \"enabled\". \n", + "Please use a valid option: \"warn\", \"enabled\", or \"disabled\". \n", + "For more information, see the docs: https://jupysql.ploomber.io/en/latest/api/configuration.html#named-parameters\n", + " warnings.warn(\n" + ] + } + ], + "source": [ + "# Load duckdb, which lets us efficiently load large files\n", + "import duckdb\n", + "\n", + "# Load pandas, which lets us manipulate dataframes\n", + "import pandas as pd\n", + "\n", + "# Import jupysql Jupyter extension to create SQL cells\n", + "%load_ext sql\n", + "\n", + "# Set configrations on jupysql to directly output data to Pandas and to simplify the output that is printed to the notebook.\n", + "%config SqlMagic.autopandas = True\n", + "\n", + "%config SqlMagic.feedback = False\n", + "%config SqlMagic.displaycon = False\n", + "\n", + "# Allow named parameters (python variables) in SQL cells\n", + "%config SqlMagic.named_parameters=True\n", + "\n", + "# Connect jupysql to DuckDB using a SQLAlchemy-style connection string. Either connect to an in memory DuckDB, or a file backed db.\n", + "%sql duckdb:///:memory:" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
count_star()
03248590
\n", + "
" + ], + "text/plain": [ + " count_star()\n", + "0 3248590" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "%%sql\n", + "SELECT COUNT(*) FROM '~/data/american_community_survey/*housing*2023.parquet'" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
count_star()
03248590
\n", + "
" + ], + "text/plain": [ + " count_star()\n", + "0 3248590" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "%%sql\n", + "SELECT COUNT(*) FROM '~/data/american_community_survey/*housing*2023.parquet'" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\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", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
column_nametotal_countnon_missing_countmissing_count
0Division code based on 2010 Census definitions...340580934058090
1Record Type340580934058090
2Housing unit/GQ person serial number340580934058090
3Person's Weight replicate 80340580934058090
\n", + "
" + ], + "text/plain": [ + " column_name total_count \\\n", + "0 Division code based on 2010 Census definitions... 3405809 \n", + "1 Record Type 3405809 \n", + "2 Housing unit/GQ person serial number 3405809 \n", + "3 Person's Weight replicate 80 3405809 \n", + "\n", + " non_missing_count missing_count \n", + "0 3405809 0 \n", + "1 3405809 0 \n", + "2 3405809 0 \n", + "3 3405809 0 " + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "%%sql\n", + "\n", + "SELECT \n", + " 'Record Type' AS column_name, \n", + " COUNT(*) AS total_count,\n", + " COUNT(*) FILTER (WHERE \"Record Type\" IS NOT NULL) AS non_missing_count,\n", + " COUNT(*) FILTER (WHERE \"Record Type\" IS NULL) AS missing_count\n", + "FROM (\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_first_tranche_2023.parquet')\n", + " UNION ALL\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_second_tranche_2023.parquet')\n", + ")\n", + "\n", + "UNION ALL\n", + "\n", + "SELECT \n", + " 'Housing unit/GQ person serial number' AS column_name, \n", + " COUNT(*) AS total_count,\n", + " COUNT(*) FILTER (WHERE \"Housing unit/GQ person serial number\" IS NOT NULL) AS non_missing_count,\n", + " COUNT(*) FILTER (WHERE \"Housing unit/GQ person serial number\" IS NULL) AS missing_count\n", + "FROM (\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_first_tranche_2023.parquet')\n", + " UNION ALL\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_second_tranche_2023.parquet')\n", + ")\n", + "\n", + "UNION ALL\n", + "\n", + "SELECT \n", + " 'Division code based on 2010 Census definitions Division code based on 2020 Census definitions' AS column_name, \n", + " COUNT(*) AS total_count,\n", + " COUNT(*) FILTER (WHERE \"Division code based on 2010 Census definitions Division code based on 2020 Census definitions\" IS NOT NULL) AS non_missing_count,\n", + " COUNT(*) FILTER (WHERE \"Division code based on 2010 Census definitions Division code based on 2020 Census definitions\" IS NULL) AS missing_count\n", + "FROM (\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_first_tranche_2023.parquet')\n", + " UNION ALL\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_second_tranche_2023.parquet')\n", + ")\n", + "\n", + "-- Continue this pattern for all remaining columns...\n", + "\n", + "UNION ALL\n", + "\n", + "SELECT \n", + " 'Person''s Weight replicate 80' AS column_name, \n", + " COUNT(*) AS total_count,\n", + " COUNT(*) FILTER (WHERE \"Person's Weight replicate 80\" IS NOT NULL) AS non_missing_count,\n", + " COUNT(*) FILTER (WHERE \"Person's Weight replicate 80\" IS NULL) AS missing_count\n", + "FROM (\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_first_tranche_2023.parquet')\n", + " UNION ALL\n", + " SELECT * FROM read_parquet('/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_second_tranche_2023.parquet')\n", + ")\n", + "\n", + "ORDER BY non_missing_count DESC;" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Column Non-Missing Count\n", + "0 Record Type 3405809\n", + "189 Public health coverage recode allocation flag 3405809\n", + "195 School enrollment allocation flag 3405809\n", + "194 Highest education allocation flag 3405809\n", + "193 Grade attending allocation flag 3405809\n", + ".. ... ...\n", + "125 Subfamily relationship 97471\n", + "24 Grandparents responsible for grandchildren 68031\n", + "17 Veteran service-connected disability rating (p... 59439\n", + "23 Length of time responsible for grandchildren 21604\n", + "111 Recoded detailed race code_1 0\n", + "\n", + "[286 rows x 2 columns]\n" + ] + } + ], + "source": [ + "import pandas as pd\n", + "import os\n", + "\n", + "# File paths\n", + "file_paths = [\n", + " '/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_first_tranche_2023.parquet',\n", + " '/Users/me/data/american_community_survey/acs_pums_individual_people_united_states_second_tranche_2023.parquet'\n", + "]\n", + "\n", + "# Function to count non-missing entries\n", + "def count_non_missing(df):\n", + " return df.notna().sum()\n", + "\n", + "# Initialize an empty list to store counts\n", + "all_counts = []\n", + "\n", + "# Process each file\n", + "for file_path in file_paths:\n", + " if os.path.exists(file_path):\n", + " # Read the parquet file\n", + " df = pd.read_parquet(file_path)\n", + " \n", + " # Count non-missing entries\n", + " counts = count_non_missing(df)\n", + " \n", + " # Append to the list\n", + " all_counts.append(counts)\n", + "\n", + "# Combine counts if we have multiple files\n", + "if len(all_counts) > 1:\n", + " total_counts = sum(all_counts)\n", + "else:\n", + " total_counts = all_counts[0]\n", + "\n", + "# Create a dataframe with the results\n", + "result_df = pd.DataFrame({\n", + " 'Column': total_counts.index,\n", + " 'Non-Missing Count': total_counts.values\n", + "})\n", + "\n", + "# Sort by count in descending order\n", + "result_df = result_df.sort_values('Non-Missing Count', ascending=False)\n", + "\n", + "# Display the results\n", + "print(result_df)\n", + "\n", + "# Optionally, save to a CSV file\n", + "# result_df.to_csv('acs_column_counts.csv', index=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \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", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
ColumnNon-Missing Count
0Record Type3405809
189Public health coverage recode allocation flag3405809
195School enrollment allocation flag3405809
194Highest education allocation flag3405809
193Grade attending allocation flag3405809
192Retirement income allocation flag3405809
191Relationship allocation flag3405809
190Detailed race allocation flag3405809
188Private health insurance coverage recode alloc...3405809
197Sex allocation flag3405809
187Place of work state allocation flag3405809
186Place of birth allocation flag3405809
185Total person's income allocation flag3405809
184Total person's earnings allocation flag3405809
183Public assistance income allocation flag3405809
182All other income allocation flag3405809
196Self-employment income allocation flag3405809
198Supplementary Security Income allocation flag3405809
215Person's Weight replicate 103405809
207Person's Weight replicate 23405809
213Person's Weight replicate 83405809
212Person's Weight replicate 73405809
211Person's Weight replicate 63405809
210Person's Weight replicate 53405809
209Person's Weight replicate 43405809
208Person's Weight replicate 33405809
206Person's Weight replicate 13405809
199Social Security income allocation flag3405809
205Year of entry allocation flag3405809
204Worked last week allocation flag3405809
203Weeks worked past 12 months allocation flag3405809
202Last worked allocation flag3405809
201Usual hours worked per week past 12 months all...3405809
200Wages and salary income allocation flag3405809
181Occupation allocation flag3405809
180Military service allocation flag3405809
179Military periods of service allocation flag3405809
151Subsidized Marketplace Coverage allocation flag3405809
160VA (enrolled for VA health care) allocation flag3405809
159TRICARE or other military health care allocati...3405809
157Medicaid, medical assistance, or any kind of g...3405809
155Medicare, for people 65 or older, or people wi...3405809
153Insurance purchased directly from an insurance...3405809
152Insurance through a current or former employer...3405809
150Health insurance coverage recode allocation flag3405809
178Migration state and foreign country allocation...3405809
149Grandparents responsible for grandchildren all...3405809
148Length of time responsible for grandchildren a...3405809
147Grandparents living with grandchildren allocat...3405809
146Field of Degree allocation flag3405809
145Gave birth to child within the past 12 months ...3405809
144Employment status recode allocation flag3405809
161Indian health service allocation flag3405809
162Detailed Hispanic origin allocation flag3405809
163Industry allocation flag3405809
164Interest, dividend, and net rental income allo...3405809
165Time of departure to work allocation flag3405809
166Travel time to work allocation flag3405809
167Vehicle occupancy allocation flag3405809
168Means of transportation to work allocation flag3405809
169Language spoken at home allocation flag3405809
170Language other than English allocation flag3405809
171Marital status allocation flag3405809
172Divorced in the past 12 months allocation flag3405809
173Married in the past 12 months allocation flag3405809
174Times married allocation flag3405809
175Widowed in the past 12 months allocation flag3405809
176Year last married allocation flag3405809
177Mobility status allocation flag3405809
214Person's Weight replicate 93405809
216Person's Weight replicate 113405809
142Cognitive difficulty allocation flag3405809
260Person's Weight replicate 553405809
266Person's Weight replicate 613405809
265Person's Weight replicate 603405809
264Person's Weight replicate 593405809
263Person's Weight replicate 583405809
262Person's Weight replicate 573405809
261Person's Weight replicate 563405809
259Person's Weight replicate 543405809
268Person's Weight replicate 633405809
258Person's Weight replicate 533405809
257Person's Weight replicate 523405809
256Person's Weight replicate 513405809
255Person's Weight replicate 503405809
254Person's Weight replicate 493405809
253Person's Weight replicate 483405809
267Person's Weight replicate 623405809
269Person's Weight replicate 643405809
217Person's Weight replicate 123405809
278Person's Weight replicate 733405809
284Person's Weight replicate 793405809
283Person's Weight replicate 783405809
282Person's Weight replicate 773405809
281Person's Weight replicate 763405809
280Person's Weight replicate 753405809
279Person's Weight replicate 743405809
277Person's Weight replicate 723405809
270Person's Weight replicate 653405809
276Person's Weight replicate 713405809
275Person's Weight replicate 703405809
274Person's Weight replicate 693405809
273Person's Weight replicate 683405809
272Person's Weight replicate 673405809
271Person's Weight replicate 663405809
252Person's Weight replicate 473405809
251Person's Weight replicate 463405809
250Person's Weight replicate 453405809
225Person's Weight replicate 203405809
231Person's Weight replicate 263405809
230Person's Weight replicate 253405809
229Person's Weight replicate 243405809
228Person's Weight replicate 233405809
227Person's Weight replicate 223405809
226Person's Weight replicate 213405809
224Person's Weight replicate 193405809
249Person's Weight replicate 443405809
223Person's Weight replicate 183405809
222Person's Weight replicate 173405809
221Person's Weight replicate 163405809
220Person's Weight replicate 153405809
219Person's Weight replicate 143405809
218Person's Weight replicate 133405809
232Person's Weight replicate 273405809
233Person's Weight replicate 283405809
234Person's Weight replicate 293405809
235Person's Weight replicate 303405809
236Person's Weight replicate 313405809
237Person's Weight replicate 323405809
238Person's Weight replicate 333405809
239Person's Weight replicate 343405809
240Person's Weight replicate 353405809
241Person's Weight replicate 363405809
242Person's Weight replicate 373405809
243Person's Weight replicate 383405809
244Person's Weight replicate 393405809
245Person's Weight replicate 403405809
246Person's Weight replicate 413405809
247Person's Weight replicate 423405809
248Person's Weight replicate 433405809
1Housing unit/GQ person serial number3405809
143Ability to speak English allocation flag3405809
141Disability rating checkbox allocation flag3405809
77Recoded Detailed Ancestry - first entry3405809
32Indian Health Service3405809
38Marital status3405809
61Relationship3405809
67Sex3405809
140Disability rating percentage allocation flag3405809
76Ancestry recode3405809
78Recoded Detailed Ancestry - second entry3405809
109Quarter of birth3405809
80Disability recode3405809
86Health insurance coverage recode3405809
87Recoded detailed Hispanic origin3405809
96Nativity3405809
103Place of birth (Recode)3405809
107Private health insurance coverage recode3405809
31VA (enrolled for VA health care)3405809
30TRICARE or other military health care3405809
29Medicaid, Medical Assistance, or any kind of g...3405809
28Medicare, for people 65 and older, or people w...3405809
27Insurance purchased directly from an insurance...3405809
26Insurance through a current or former employer...3405809
25Subsidized Marketplace Coverage3405809
14Vision difficulty3405809
13Hearing difficulty3405809
9Citizenship status3405809
8Age3405809
7Person's weight3405809
6Person number3405809
5Adjustment factor for income and earnings doll...3405809
4Region code based on 2020 Census definitions3405809
3Public use microdata area code (PUMA) based on...3405809
2Division code based on 2010 Census definitions...3405809
108Public health coverage recode3405809
285Person's Weight replicate 803405809
110Recoded detailed race code3405809
114Asian recode (Asian alone or in combination wi...3405809
120White recode (White alone or in combination wi...3405809
119Some other race recode (Some other race alone ...3405809
118Other Pacific Islander recode (Other Pacific I...3405809
117Number of major race groups represented3405809
128World area of birth3405809
129Age allocation flag3405809
115Black or African American recode (Black alone ...3405809
130Ancestry allocation flag3405809
131Citizenship allocation flag3405809
132Year of naturalization write-in allocation flag3405809
133Class of worker allocation flag3405809
116Native Hawaiian recode (Native Hawaiian alone ...3405809
134Self-care difficulty allocation flag3405809
137Disability recode allocation flag3405809
112Recoded detailed race code_23405809
139Ambulatory difficulty allocation flag3405809
135Hearing difficulty allocation flag3405809
136Vision difficulty allocation flag3405809
138Independent living difficulty allocation flag3405809
113American Indian and Alaska Native recode (Amer...3405809
44Mobility status (lived here 1 year ago)3376341
63School enrollment3315431
65Educational attainment3315431
104Income-to-poverty ratio recode3255926
16Ambulatory difficulty3251652
37Language other than English spoken at home3251652
12Self-care difficulty3251652
19Cognitive difficulty3251652
98Own child3229844
121Related child3229844
70Wages or salary income past 12 months (use ADJ...2888432
60Public assistance income past 12 months (use A...2888432
66Self-employment income past 12 months (use ADJ...2888432
59All other income past 12 months (use ADJINC to...2888432
68Supplementary Security Income past 12 months (...2888432
69Social Security income past 12 months (use ADJ...2888432
62Retirement income past 12 months (use ADJINC t...2888432
15Independent living difficulty2888432
94Married, spouse present/spouse absent2888432
33Interest, dividends, and net rental income pas...2888432
102Total person's income (use ADJINC to adjust to...2888432
58Informed of recall (UNEDITED - See 'Employment...2847645
57Looking for work (UNEDITED - See 'Employment S...2847645
54Temporary absence from work (UNEDITED - See 'E...2847645
56On layoff from work (UNEDITED - See 'Employmen...2847645
55Available for work (UNEDITED - See 'Employment...2847645
72When last worked2847645
101Total person's earnings (use ADJINC to adjust ...2847645
83Employment status recode2847645
45Military service2806587
74Worked last week2475812
22Grandparents living with grandchildren2287486
99Occupation recode for 2018 and later based on ...2033844
11Class of worker2033844
126Standard Occupational Classification (SOC) cod...2033844
42Widowed in the past 12 months2003571
41Number of times married2003571
40Married in the past 12 months2003571
39Divorced in the past 12 months2003571
43Year last married1983874
88Industry recode for 2018 and later based on 20...1833982
95North American Industry Classification System ...1831590
71Usual hours worked per week past 12 months1758960
73Weeks worked during past 12 months1758960
36Means of transportation to work1568061
106Place of work - State or foreign country recode1568061
105Place of work PUMA based on 2020 Census defini...1568061
100Presence and age of own children1390316
34Travel time to work1343093
89Time of arrival at work - hour and minute1343093
90Time of departure for work - hour and minute1343093
81Number of vehicles calculated from JWRI1222065
35Vehicle occupancy1222065
122Field of Degree Science and Engineering Flag -...940403
123Field of Degree Science and Engineering Relate...940403
84Recoded field of degree - first entry940275
154Medicare coverage given through the eligibilit...830114
64Grade level attending741113
21Gave birth to child within the past 12 months717274
156Medicaid coverage given through the eligibilit...678668
20Ability to speak English625353
91Language spoken at home625353
82Employment status of parents604320
97Nativity of parent604320
79Decade of entry477376
75Year of entry466493
93Migration recode - State or foreign country code379786
92Migration PUMA based on 2020 Census definition379786
18Veteran service-connected disability rating (c...238334
10Year of naturalization write-in235936
46Served September 2001 or later203742
47Served August 1990 - August 2001 (including Pe...203742
48Served May 1975 - July 1990203742
53Served World War II (December 1941 - December ...203742
50Served February 1955 - July 1964203742
49Served Vietnam era (August 1964 - April 1975)203742
52Peacetime service before July 1950203742
127Veteran period of service203742
51Served Korean War (July 1950 - January 1955)203742
158TRICARE coverage given through the eligibility...117550
85Recoded field of degree - second entry106047
124Subfamily number97471
125Subfamily relationship97471
24Grandparents responsible for grandchildren68031
17Veteran service-connected disability rating (p...59439
23Length of time responsible for grandchildren21604
111Recoded detailed race code_10
\n", + "
" + ], + "text/plain": [ + " Column Non-Missing Count\n", + "0 Record Type 3405809\n", + "189 Public health coverage recode allocation flag 3405809\n", + "195 School enrollment allocation flag 3405809\n", + "194 Highest education allocation flag 3405809\n", + "193 Grade attending allocation flag 3405809\n", + "192 Retirement income allocation flag 3405809\n", + "191 Relationship allocation flag 3405809\n", + "190 Detailed race allocation flag 3405809\n", + "188 Private health insurance coverage recode alloc... 3405809\n", + "197 Sex allocation flag 3405809\n", + "187 Place of work state allocation flag 3405809\n", + "186 Place of birth allocation flag 3405809\n", + "185 Total person's income allocation flag 3405809\n", + "184 Total person's earnings allocation flag 3405809\n", + "183 Public assistance income allocation flag 3405809\n", + "182 All other income allocation flag 3405809\n", + "196 Self-employment income allocation flag 3405809\n", + "198 Supplementary Security Income allocation flag 3405809\n", + "215 Person's Weight replicate 10 3405809\n", + "207 Person's Weight replicate 2 3405809\n", + "213 Person's Weight replicate 8 3405809\n", + "212 Person's Weight replicate 7 3405809\n", + "211 Person's Weight replicate 6 3405809\n", + "210 Person's Weight replicate 5 3405809\n", + "209 Person's Weight replicate 4 3405809\n", + "208 Person's Weight replicate 3 3405809\n", + "206 Person's Weight replicate 1 3405809\n", + "199 Social Security income allocation flag 3405809\n", + "205 Year of entry allocation flag 3405809\n", + "204 Worked last week allocation flag 3405809\n", + "203 Weeks worked past 12 months allocation flag 3405809\n", + "202 Last worked allocation flag 3405809\n", + "201 Usual hours worked per week past 12 months all... 3405809\n", + "200 Wages and salary income allocation flag 3405809\n", + "181 Occupation allocation flag 3405809\n", + "180 Military service allocation flag 3405809\n", + "179 Military periods of service allocation flag 3405809\n", + "151 Subsidized Marketplace Coverage allocation flag 3405809\n", + "160 VA (enrolled for VA health care) allocation flag 3405809\n", + "159 TRICARE or other military health care allocati... 3405809\n", + "157 Medicaid, medical assistance, or any kind of g... 3405809\n", + "155 Medicare, for people 65 or older, or people wi... 3405809\n", + "153 Insurance purchased directly from an insurance... 3405809\n", + "152 Insurance through a current or former employer... 3405809\n", + "150 Health insurance coverage recode allocation flag 3405809\n", + "178 Migration state and foreign country allocation... 3405809\n", + "149 Grandparents responsible for grandchildren all... 3405809\n", + "148 Length of time responsible for grandchildren a... 3405809\n", + "147 Grandparents living with grandchildren allocat... 3405809\n", + "146 Field of Degree allocation flag 3405809\n", + "145 Gave birth to child within the past 12 months ... 3405809\n", + "144 Employment status recode allocation flag 3405809\n", + "161 Indian health service allocation flag 3405809\n", + "162 Detailed Hispanic origin allocation flag 3405809\n", + "163 Industry allocation flag 3405809\n", + "164 Interest, dividend, and net rental income allo... 3405809\n", + "165 Time of departure to work allocation flag 3405809\n", + "166 Travel time to work allocation flag 3405809\n", + "167 Vehicle occupancy allocation flag 3405809\n", + "168 Means of transportation to work allocation flag 3405809\n", + "169 Language spoken at home allocation flag 3405809\n", + "170 Language other than English allocation flag 3405809\n", + "171 Marital status allocation flag 3405809\n", + "172 Divorced in the past 12 months allocation flag 3405809\n", + "173 Married in the past 12 months allocation flag 3405809\n", + "174 Times married allocation flag 3405809\n", + "175 Widowed in the past 12 months allocation flag 3405809\n", + "176 Year last married allocation flag 3405809\n", + "177 Mobility status allocation flag 3405809\n", + "214 Person's Weight replicate 9 3405809\n", + "216 Person's Weight replicate 11 3405809\n", + "142 Cognitive difficulty allocation flag 3405809\n", + "260 Person's Weight replicate 55 3405809\n", + "266 Person's Weight replicate 61 3405809\n", + "265 Person's Weight replicate 60 3405809\n", + "264 Person's Weight replicate 59 3405809\n", + "263 Person's Weight replicate 58 3405809\n", + "262 Person's Weight replicate 57 3405809\n", + "261 Person's Weight replicate 56 3405809\n", + "259 Person's Weight replicate 54 3405809\n", + "268 Person's Weight replicate 63 3405809\n", + "258 Person's Weight replicate 53 3405809\n", + "257 Person's Weight replicate 52 3405809\n", + "256 Person's Weight replicate 51 3405809\n", + "255 Person's Weight replicate 50 3405809\n", + "254 Person's Weight replicate 49 3405809\n", + "253 Person's Weight replicate 48 3405809\n", + "267 Person's Weight replicate 62 3405809\n", + "269 Person's Weight replicate 64 3405809\n", + "217 Person's Weight replicate 12 3405809\n", + "278 Person's Weight replicate 73 3405809\n", + "284 Person's Weight replicate 79 3405809\n", + "283 Person's Weight replicate 78 3405809\n", + "282 Person's Weight replicate 77 3405809\n", + "281 Person's Weight replicate 76 3405809\n", + "280 Person's Weight replicate 75 3405809\n", + "279 Person's Weight replicate 74 3405809\n", + "277 Person's Weight replicate 72 3405809\n", + "270 Person's Weight replicate 65 3405809\n", + "276 Person's Weight replicate 71 3405809\n", + "275 Person's Weight replicate 70 3405809\n", + "274 Person's Weight replicate 69 3405809\n", + "273 Person's Weight replicate 68 3405809\n", + "272 Person's Weight replicate 67 3405809\n", + "271 Person's Weight replicate 66 3405809\n", + "252 Person's Weight replicate 47 3405809\n", + "251 Person's Weight replicate 46 3405809\n", + "250 Person's Weight replicate 45 3405809\n", + "225 Person's Weight replicate 20 3405809\n", + "231 Person's Weight replicate 26 3405809\n", + "230 Person's Weight replicate 25 3405809\n", + "229 Person's Weight replicate 24 3405809\n", + "228 Person's Weight replicate 23 3405809\n", + "227 Person's Weight replicate 22 3405809\n", + "226 Person's Weight replicate 21 3405809\n", + "224 Person's Weight replicate 19 3405809\n", + "249 Person's Weight replicate 44 3405809\n", + "223 Person's Weight replicate 18 3405809\n", + "222 Person's Weight replicate 17 3405809\n", + "221 Person's Weight replicate 16 3405809\n", + "220 Person's Weight replicate 15 3405809\n", + "219 Person's Weight replicate 14 3405809\n", + "218 Person's Weight replicate 13 3405809\n", + "232 Person's Weight replicate 27 3405809\n", + "233 Person's Weight replicate 28 3405809\n", + "234 Person's Weight replicate 29 3405809\n", + "235 Person's Weight replicate 30 3405809\n", + "236 Person's Weight replicate 31 3405809\n", + "237 Person's Weight replicate 32 3405809\n", + "238 Person's Weight replicate 33 3405809\n", + "239 Person's Weight replicate 34 3405809\n", + "240 Person's Weight replicate 35 3405809\n", + "241 Person's Weight replicate 36 3405809\n", + "242 Person's Weight replicate 37 3405809\n", + "243 Person's Weight replicate 38 3405809\n", + "244 Person's Weight replicate 39 3405809\n", + "245 Person's Weight replicate 40 3405809\n", + "246 Person's Weight replicate 41 3405809\n", + "247 Person's Weight replicate 42 3405809\n", + "248 Person's Weight replicate 43 3405809\n", + "1 Housing unit/GQ person serial number 3405809\n", + "143 Ability to speak English allocation flag 3405809\n", + "141 Disability rating checkbox allocation flag 3405809\n", + "77 Recoded Detailed Ancestry - first entry 3405809\n", + "32 Indian Health Service 3405809\n", + "38 Marital status 3405809\n", + "61 Relationship 3405809\n", + "67 Sex 3405809\n", + "140 Disability rating percentage allocation flag 3405809\n", + "76 Ancestry recode 3405809\n", + "78 Recoded Detailed Ancestry - second entry 3405809\n", + "109 Quarter of birth 3405809\n", + "80 Disability recode 3405809\n", + "86 Health insurance coverage recode 3405809\n", + "87 Recoded detailed Hispanic origin 3405809\n", + "96 Nativity 3405809\n", + "103 Place of birth (Recode) 3405809\n", + "107 Private health insurance coverage recode 3405809\n", + "31 VA (enrolled for VA health care) 3405809\n", + "30 TRICARE or other military health care 3405809\n", + "29 Medicaid, Medical Assistance, or any kind of g... 3405809\n", + "28 Medicare, for people 65 and older, or people w... 3405809\n", + "27 Insurance purchased directly from an insurance... 3405809\n", + "26 Insurance through a current or former employer... 3405809\n", + "25 Subsidized Marketplace Coverage 3405809\n", + "14 Vision difficulty 3405809\n", + "13 Hearing difficulty 3405809\n", + "9 Citizenship status 3405809\n", + "8 Age 3405809\n", + "7 Person's weight 3405809\n", + "6 Person number 3405809\n", + "5 Adjustment factor for income and earnings doll... 3405809\n", + "4 Region code based on 2020 Census definitions 3405809\n", + "3 Public use microdata area code (PUMA) based on... 3405809\n", + "2 Division code based on 2010 Census definitions... 3405809\n", + "108 Public health coverage recode 3405809\n", + "285 Person's Weight replicate 80 3405809\n", + "110 Recoded detailed race code 3405809\n", + "114 Asian recode (Asian alone or in combination wi... 3405809\n", + "120 White recode (White alone or in combination wi... 3405809\n", + "119 Some other race recode (Some other race alone ... 3405809\n", + "118 Other Pacific Islander recode (Other Pacific I... 3405809\n", + "117 Number of major race groups represented 3405809\n", + "128 World area of birth 3405809\n", + "129 Age allocation flag 3405809\n", + "115 Black or African American recode (Black alone ... 3405809\n", + "130 Ancestry allocation flag 3405809\n", + "131 Citizenship allocation flag 3405809\n", + "132 Year of naturalization write-in allocation flag 3405809\n", + "133 Class of worker allocation flag 3405809\n", + "116 Native Hawaiian recode (Native Hawaiian alone ... 3405809\n", + "134 Self-care difficulty allocation flag 3405809\n", + "137 Disability recode allocation flag 3405809\n", + "112 Recoded detailed race code_2 3405809\n", + "139 Ambulatory difficulty allocation flag 3405809\n", + "135 Hearing difficulty allocation flag 3405809\n", + "136 Vision difficulty allocation flag 3405809\n", + "138 Independent living difficulty allocation flag 3405809\n", + "113 American Indian and Alaska Native recode (Amer... 3405809\n", + "44 Mobility status (lived here 1 year ago) 3376341\n", + "63 School enrollment 3315431\n", + "65 Educational attainment 3315431\n", + "104 Income-to-poverty ratio recode 3255926\n", + "16 Ambulatory difficulty 3251652\n", + "37 Language other than English spoken at home 3251652\n", + "12 Self-care difficulty 3251652\n", + "19 Cognitive difficulty 3251652\n", + "98 Own child 3229844\n", + "121 Related child 3229844\n", + "70 Wages or salary income past 12 months (use ADJ... 2888432\n", + "60 Public assistance income past 12 months (use A... 2888432\n", + "66 Self-employment income past 12 months (use ADJ... 2888432\n", + "59 All other income past 12 months (use ADJINC to... 2888432\n", + "68 Supplementary Security Income past 12 months (... 2888432\n", + "69 Social Security income past 12 months (use ADJ... 2888432\n", + "62 Retirement income past 12 months (use ADJINC t... 2888432\n", + "15 Independent living difficulty 2888432\n", + "94 Married, spouse present/spouse absent 2888432\n", + "33 Interest, dividends, and net rental income pas... 2888432\n", + "102 Total person's income (use ADJINC to adjust to... 2888432\n", + "58 Informed of recall (UNEDITED - See 'Employment... 2847645\n", + "57 Looking for work (UNEDITED - See 'Employment S... 2847645\n", + "54 Temporary absence from work (UNEDITED - See 'E... 2847645\n", + "56 On layoff from work (UNEDITED - See 'Employmen... 2847645\n", + "55 Available for work (UNEDITED - See 'Employment... 2847645\n", + "72 When last worked 2847645\n", + "101 Total person's earnings (use ADJINC to adjust ... 2847645\n", + "83 Employment status recode 2847645\n", + "45 Military service 2806587\n", + "74 Worked last week 2475812\n", + "22 Grandparents living with grandchildren 2287486\n", + "99 Occupation recode for 2018 and later based on ... 2033844\n", + "11 Class of worker 2033844\n", + "126 Standard Occupational Classification (SOC) cod... 2033844\n", + "42 Widowed in the past 12 months 2003571\n", + "41 Number of times married 2003571\n", + "40 Married in the past 12 months 2003571\n", + "39 Divorced in the past 12 months 2003571\n", + "43 Year last married 1983874\n", + "88 Industry recode for 2018 and later based on 20... 1833982\n", + "95 North American Industry Classification System ... 1831590\n", + "71 Usual hours worked per week past 12 months 1758960\n", + "73 Weeks worked during past 12 months 1758960\n", + "36 Means of transportation to work 1568061\n", + "106 Place of work - State or foreign country recode 1568061\n", + "105 Place of work PUMA based on 2020 Census defini... 1568061\n", + "100 Presence and age of own children 1390316\n", + "34 Travel time to work 1343093\n", + "89 Time of arrival at work - hour and minute 1343093\n", + "90 Time of departure for work - hour and minute 1343093\n", + "81 Number of vehicles calculated from JWRI 1222065\n", + "35 Vehicle occupancy 1222065\n", + "122 Field of Degree Science and Engineering Flag -... 940403\n", + "123 Field of Degree Science and Engineering Relate... 940403\n", + "84 Recoded field of degree - first entry 940275\n", + "154 Medicare coverage given through the eligibilit... 830114\n", + "64 Grade level attending 741113\n", + "21 Gave birth to child within the past 12 months 717274\n", + "156 Medicaid coverage given through the eligibilit... 678668\n", + "20 Ability to speak English 625353\n", + "91 Language spoken at home 625353\n", + "82 Employment status of parents 604320\n", + "97 Nativity of parent 604320\n", + "79 Decade of entry 477376\n", + "75 Year of entry 466493\n", + "93 Migration recode - State or foreign country code 379786\n", + "92 Migration PUMA based on 2020 Census definition 379786\n", + "18 Veteran service-connected disability rating (c... 238334\n", + "10 Year of naturalization write-in 235936\n", + "46 Served September 2001 or later 203742\n", + "47 Served August 1990 - August 2001 (including Pe... 203742\n", + "48 Served May 1975 - July 1990 203742\n", + "53 Served World War II (December 1941 - December ... 203742\n", + "50 Served February 1955 - July 1964 203742\n", + "49 Served Vietnam era (August 1964 - April 1975) 203742\n", + "52 Peacetime service before July 1950 203742\n", + "127 Veteran period of service 203742\n", + "51 Served Korean War (July 1950 - January 1955) 203742\n", + "158 TRICARE coverage given through the eligibility... 117550\n", + "85 Recoded field of degree - second entry 106047\n", + "124 Subfamily number 97471\n", + "125 Subfamily relationship 97471\n", + "24 Grandparents responsible for grandchildren 68031\n", + "17 Veteran service-connected disability rating (p... 59439\n", + "23 Length of time responsible for grandchildren 21604\n", + "111 Recoded detailed race code_1 0" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from IPython.display import display\n", + "\n", + "pd.set_option('display.max_rows', None)\n", + "pd.set_option('display.max_columns', None)\n", + "\n", + "result_df" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.14" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}