xdufacool/collect_local.py
def write_dict_to_csv(filename, data):
    """Write a dictionary to a CSV file with the key as the first column."""
    with open(filename, 'w') as csvfile:
        writer = csv.writer(csvfile)
        keys = sorted(data.keys())
        for key in keys:
            value = data[key]
            row = [str(key)] + [str(v) for v in value]
            writer.writerow(row)
Write a dictionary to a CSV file with the key as the first column.
Write a dictionary to a CSV file with the key as the first column.
Write a dictionary to a CSV file with the key as the first column .
def write_dict_to_csv(filename, data):
    with open(filename, 'w') as csvfile:
        writer = csv.writer(csvfile)
        keys = sorted(data.keys())
        for key in keys:
            value = data[key]
            row = [str(key)] + [str(v) for v in value]
            writer.writerow(row)
def write_dict_to_csv ( filename , data ) : with open ( filename , 'w' ) as csvfile : writer = csv . writer ( csvfile ) keys = sorted ( data . keys ( ) ) for key in keys : value = data [ key ] row = [ str ( key ) ] + [ str ( v ) for v in value ] writer . writerow ( row )
Write a dictionary to a CSV file with the key as the first column.
Write a dictionary to a CSV file with the key as the first column .
"""Write a dictionary to a CSV file with the key as the first column."""
filename
data