split_csv ¶
CLI module for splitting CSV data files.
Functions:
-
get_args
–Get the arguments when using from the commandline.
-
main
–Connect CSV and YAML configuration and handle sanity checks.
-
run
–Run the CSV splitting script.
get_args ¶
get_args() -> Namespace
Get the arguments when using from the commandline.
Source code in src/stimulus/cli/split_csv.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
main ¶
Connect CSV and YAML configuration and handle sanity checks.
Parameters:
-
data_csv
(str
) –Path to input CSV file.
-
config_yaml
(str
) –Path to config YAML file.
-
out_path
(str
) –Path to output split CSV.
-
force
(bool
, default:False
) –Overwrite the split column if it already exists in the CSV.
Source code in src/stimulus/cli/split_csv.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
run ¶
run() -> None
Run the CSV splitting script.
Source code in src/stimulus/cli/split_csv.py
79 80 81 82 |
|