with open('arm.csv', newline='') as File:
with open('wdays_data.csv', mode='w') as wdays:
reader = csv.reader(File)
for row in reader:
if row[0] in weekend_days:
writer = csv.writer(wdays, delimiter=',')
writer.writerows(row[0])
TypeError: write() argument must be str, not list