DataFrameinto multiple files as csv or parquet :
to_parquet, these methods provide four additional parameters so you can choose how to split and store the
DataFramein several files.
path/path_or_buf:The location to store the files. Basename must contain the special character
*that will be replaced by the file number. Example :
Optional[int]-> The number of output files.
num_rows_per_file: Optional[int]-> The number of rows in each output file. Total number of files will be deduced from the DataFrame rows number.
in_memory_file_size: Optional[int]-> The in-memory size in megabytes of each chunk of the input DataFrame to save. Total number of files will be deduced from the DataFrame memory size. Use chunks of 1GB (maximum size allowed) if none of
with_leading_zeros: Optional[bool]-> Whether file names numbers should have leading zeros so all file names have an identical length. Default
to_csv_folder. Syntax is identical for