tests/integration/randomizer.py
def csvfile_to_wb(csv_filename):
    """Open a CSV file and return an openpyxl workbook."""

    with open(csv_filename) as csv_file:
        reader = csv.reader(csv_file)
        wb = pyxl.Workbook()
        ws = wb.active
        for row_index, row in enumerate(reader, 1):
            for column_index, cell in enumerate(row, 1):
                if cell not in ("", None):
                    ws.cell(row=row_index, column=column_index).value = cell
    return wb
Open a CSV file and return an openpyxl workbook.
Open a CSV file and return an openpyxl workbook.
Open a CSV file and return an openpyxl workbook .
def csvfile_to_wb(csv_filename):
    with open(csv_filename) as csv_file:
        reader = csv.reader(csv_file)
        wb = pyxl.Workbook()
        ws = wb.active
        for row_index, row in enumerate(reader, 1):
            for column_index, cell in enumerate(row, 1):
                if cell not in ("", None):
                    ws.cell(row=row_index, column=column_index).value = cell
    return wb
def csvfile_to_wb ( csv_filename ) : with open ( csv_filename ) as csv_file : reader = csv . reader ( csv_file ) wb = pyxl . Workbook ( ) ws = wb . active for row_index , row in enumerate ( reader , 1 ) : for column_index , cell in enumerate ( row , 1 ) : if cell not in ( "" , None ) : ws . cell ( row = row_index , column = column_index ) . value = cell return wb
Open a CSV file and return an openpyxl workbook.
Open a CSV file and return an openpyxl workbook .
"""Open a CSV file and return an openpyxl workbook."""
csv_filename