The mcr_create_test_data Module

Given original Medicare data, this module creates a small, randomly selected subset of the data for testing purposes.

It does not remove PII!!!

See also Random selector for CSV files

class FTSTuple(root: str, fts_file: str)[source]
fts_path() str[source]
dat_path(dat_file) str[source]
find_fts_tuples(root: str) List[FTSTuple][source]
select(root: str, destination: str, threshold: float)[source]
args()[source]

Parses command line arguments

--in INPUT

pattern to select incoming files

--out OUT

Directory to output the random selection

--selector SELECTOR

A float value specifying the share of data to be selected

Returns

arguments as dictionary