Big_dict = {}
BD = {}
shits1 = []
for game in BD.keys():
for play in BD[game].keys():
for shitta in shits1:
count1 += 1
if shitta not in list(BD[game][play].keys()):
BD[game][play][shitta] = 0
count2 += 1
for key in BD[game][play].keys():
if key not in Big_dict[game][play].keys():
Big_dict[game][play][key] = BD[game][play][key]
csv_file = '2.csv'
csv_columns = list(Big_dict[game][play].keys())
with open(csv_file, "w", encoding = 'utf-8') as f:
writer = csv.writer(f)
writer.writerow(csv_columns)
for key1 in Big_dict.keys():
for key in Big_dict[key1].keys():
aux = [Big_dict[key1][key][key2]
for key2 in csv_columns
]
writer.writerow(aux)
csv_file = '3.csv'
with open(csv_file, "w", ) as f:
writer = csv.writer(f)
writer.writerow(results)
Big_dict = {}
BD = {}
shits1 = []
for game in BD.keys():
for play in BD[game].keys():