def to_csv()

in components/utils/converter.py [0:0]


def to_csv(xls_filename, csv_filename) -> None:
    # Load the Excel file
    wb = openpyxl.load_workbook(xls_filename)

    # Create a new CSV file
    with open(csv_filename, "w", newline="") as csvfile:
        writer = csv.writer(csvfile)

        # Iterate over the rows in the Excel file
        for row in wb.active.rows:
            # Write the row data to the CSV file
            writer.writerow([cell.value for cell in row])