shuffle_csv ¶
CLI module for shuffling CSV data files.
Functions:
-
load_data_config_from_path
–Load the data config from a path.
-
shuffle_csv
–Shuffle the data and split it according to the default split method.
load_data_config_from_path ¶
load_data_config_from_path(
data_path: str, data_config_path: str
) -> DatasetProcessor
Load the data config from a path.
Parameters:
-
data_config_path
(str
) –Path to the data config file.
Returns:
-
DatasetProcessor
–A tuple of the parsed configuration.
Source code in src/stimulus/cli/shuffle_csv.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
shuffle_csv ¶
Shuffle the data and split it according to the default split method.
Parameters:
-
data_csv
(str
) –Path to input CSV file.
-
config_yaml
(str
) –Path to config YAML file.
-
out_path
(str
) –Path to output shuffled CSV.
Source code in src/stimulus/cli/shuffle_csv.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|