bucky.datasource_transforms.bin_bridged_race_census_csv
#
Preprocess the us census bridged race statistics dataset.
Module Contents#
Functions#
|
Convert a fixed with file into a csv-like file object. |
|
Group ages in the Census csv to match the bins used by Prem et al. |
- bucky.datasource_transforms.bin_bridged_race_census_csv._fixed_width_to_csv(file, blocks)[source]#
Convert a fixed with file into a csv-like file object.
- bucky.datasource_transforms.bin_bridged_race_census_csv.bin_census_data(filename, out_filename)[source]#
Group ages in the Census csv to match the bins used by Prem et al. :param filename: Unmodified Census CSV :type filename:
bucky._typing.PathLike
:param out_filename: Output file for binned data :type out_filename:bucky._typing.PathLike