Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. name_csv = 'fresco ' + Date.replace('/','.') + '.csv'
  2. f = open(name_csv, 'w')
  3. path = "dict_output.csv"
  4. result_dicts_mass = []
  5. for i in range(len(sort_result)):
  6.     res = {}
  7.     for j in range(len(sort_result[i])):
  8.       res[settings[j]] = sort_result[i][j]
  9.     result_dicts_mass.append(res)        
  10.     try:
  11.         dataCsv.csv_writer(name_csv, fieldnames=settings, data=result_dicts_mass)
  12.     except:
  13.         continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement