I am using csv package now, and every time when I write to a new csv file and open it with excel I will find a empty row in between every two rows.
filereader = csv.reader(open("tests.csv", "r"), delimiter=",")
filewriter = csv.writer(open("test_step1.csv", "w"), delimiter=",")
#Delete header
for row in filereader:
if row[0].isdigit():
filewriter.writerow(row)
writer
file inwb
mode. It is because of the\r\n
– Indultrb
andwb
You can read a string, and write binary the same dataset – Indult