Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html>
<h"... is not valid JSON
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Census Earners (Cleaned)
A cleaned subset of the openintro/census dataset (a random sample of the
2000 U.S. Census), sourced via Vincent Arel-Bundock's Rdatasets collection.
Cleaning steps
- Started from 500 rows, 9 columns.
- Removed 108 rows where
total_personal_incomewas null — confirmed via age check to be children (ages 0-14, median age 6), for whom personal income is not applicable. - Removed 52 working-age adults (ages 15-87) with
total_personal_incomeequal to 0 — mostly supported by household income, kept out to preserve a clean positive-income target. - Median-filled 11 remaining
total_family_incomenulls (genuinely unknown for real earners). Median used instead of mean due to strong right-skew. - Added
income_band: a derived Low/Medium/High split (terciles) oftotal_personal_income, for classification use cases.
Final shape
339 rows x 10 columns. Zero nulls.
Columns
rownames: original row ID (not meaningful data)census_year: constant, 2000state_fips_code: U.S. state name (misleadingly named -- holds text, not a FIPS code)total_family_income: household income, USDage: age in yearssex: Female / Malerace_general: race category (8 levels)marital_status: marital status (6 levels)total_personal_income: personal income, USD (strictly positive)income_band: derived Low / Medium / High tercile of personal income
- Downloads last month
- 42