Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
The info cannot be fetched for the config 'default' of the dataset.
Error code:   InfoError
Exception:    HfHubHTTPError
Message:      Server error '504 Gateway Time-out' for url 'https://huggingface.co/api/datasets/RaayGunz/census-earners-clean/tree/948d4cf52393db29b9549296f640234a1452018d/data?recursive=true&expand=false'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 223, in compute_first_rows_from_streaming_response
                  info = get_dataset_config_info(path=dataset, config_name=config, token=hf_token)
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 268, in get_dataset_config_info
                  builder = load_dataset_builder(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1325, in load_dataset_builder
                  dataset_module = dataset_module_factory(
                      path,
                  ...<5 lines>...
                      cache_dir=cache_dir,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1217, in dataset_module_factory
                  raise e1 from None
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1192, in dataset_module_factory
                  ).get_module()
                    ~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 648, in get_module
                  patterns = get_data_patterns(base_path, download_config=self.download_config)
                File "/usr/local/lib/python3.14/site-packages/datasets/data_files.py", line 493, in get_data_patterns
                  return _get_data_files_patterns(resolver)
                File "/usr/local/lib/python3.14/site-packages/datasets/data_files.py", line 268, in _get_data_files_patterns
                  data_files = pattern_resolver(pattern)
                File "/usr/local/lib/python3.14/site-packages/datasets/data_files.py", line 372, in resolve_pattern
                  for filepath, info in fs.glob(fs_pattern, detail=True, **glob_kwargs).items():
                                        ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_file_system.py", line 728, in glob
                  return super().glob(path, maxdepth=maxdepth, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/fsspec/spec.py", line 604, in glob
                  allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_file_system.py", line 767, in find
                  out = self._ls_tree(path, recursive=True, refresh=refresh, maxdepth=maxdepth, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_file_system.py", line 612, in _ls_tree
                  for path_info in tree:
                                   ^^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_api.py", line 3922, in list_repo_tree
                  for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}):
                                   ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/utils/_pagination.py", line 36, in paginate
                  hf_raise_for_status(r)
                  ~~~~~~~~~~~~~~~~~~~^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/utils/_http.py", line 877, in hf_raise_for_status
                  raise _format(HfHubHTTPError, str(e), response) from e
              huggingface_hub.errors.HfHubHTTPError: Server error '504 Gateway Time-out' for url 'https://huggingface.co/api/datasets/RaayGunz/census-earners-clean/tree/948d4cf52393db29b9549296f640234a1452018d/data?recursive=true&expand=false'
              For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504

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_income was 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_income equal to 0 — mostly supported by household income, kept out to preserve a clean positive-income target.
  • Median-filled 11 remaining total_family_income nulls (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) of total_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, 2000
  • state_fips_code: U.S. state name (misleadingly named -- holds text, not a FIPS code)
  • total_family_income: household income, USD
  • age: age in years
  • sex: Female / Male
  • race_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