I want to write data in csv file(myfile,csv) i a able to write them but data are being written interleaving one row in them that i don't want. there shouldn't be any blank row I have written below code using csv module
data=[['NAME', 'GROUP', 'AD-NAME'], ['XYZ', 'bb1', 'aplpha1-XYZ-EXVE'],['PQR', 'bbb', 'uhbk-PQR-FIVE'], ['123', 'xyz', 'odlj-123-TIVE'], ['XYZ', 'my_name', 'aplpha-XYZ-EXEcCEL']]
with open('D:\\project\\myfile.csv', 'w') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(data)