noctis.data_transformation.preprocessing.utilities._save_list_to_partition_csv¶
- noctis.data_transformation.preprocessing.utilities._save_list_to_partition_csv(my_list: list, header: list[str], output_dir: str, name: str, partition_num: int) None[source]¶
Save a list to a CSV file with a header in a partition-specific directory.
- Args:
my_list (list): List of items to save. header (list[str]): Header for the CSV file. output_dir (str): Directory to save the CSV file. name (str): Name of the CSV file. partition_num (int): Partition number for directory naming.
- Note:
Creates the directory if it doesn’t exist and writes the header followed by list items.