acoustic_data_science/processing/combine_csvs.py
def combine_monthly_csvs():
    """
    Combines monthly CSVs and saves them as feather files.
    """
    logging.info("Combining CSVs to feather file.")

    month_paths = []
    for month in os.listdir(config.raw_csvs_path):
        logging.info(f"=== Processing {month.split('/')[-1]} ===")
        csv_folder_path = f"{config.raw_csvs_path}/{month}"
        if os.path.isdir(csv_folder_path):
            month_paths.append(csv_folder_path)

    for month in month_paths:
        combine_csvs(month).to_feather(
            os.path.join(
                config.raw_feathers_path, month.split("/")[-1] + ".feather"
            )
        )

    Combines monthly CSVs and saves them as feather files.
    
Combines monthly CSVs and saves them as feather files.
Combines monthly CSVs and saves them as feather files .
def combine_monthly_csvs():
    logging.info("Combining CSVs to feather file.")
    month_paths = []
    for month in os.listdir(config.raw_csvs_path):
        logging.info(f"=== Processing {month.split('/')[-1]} ===")
        csv_folder_path = f"{config.raw_csvs_path}/{month}"
        if os.path.isdir(csv_folder_path):
            month_paths.append(csv_folder_path)
    for month in month_paths:
        combine_csvs(month).to_feather(
            os.path.join(
                config.raw_feathers_path, month.split("/")[-1] + ".feather"
            )
        )
def combine_monthly_csvs ( ) : logging . info ( "Combining CSVs to feather file." ) month_paths = [ ] for month in os . listdir ( config . raw_csvs_path ) : logging . info ( f"=== Processing {month.split('/')[-1]} ===" ) csv_folder_path = f"{config.raw_csvs_path}/{month}" if os . path . isdir ( csv_folder_path ) : month_paths . append ( csv_folder_path ) for month in month_paths : combine_csvs ( month ) . to_feather ( os . path . join ( config . raw_feathers_path , month . split ( "/" ) [ - 1 ] + ".feather" ) )
Combines monthly CSVs and saves them as feather files.
Combines monthly CSVs and saves them as feather files .
"""
    Combines monthly CSVs and saves them as feather files.
    """