I'm trying to append more than 2.5 million data points into a csv (which I open with Visual Studio Code). It's working for 1,738,142 data points, but no more than that...which is coincidentally the amount of rows Excel can handle (with my version/computer). Any idea why this is happening? Part of my code is below. I'm extremely new to this, so please tell me if I have to clarify.
with open('dataset.csv', 'a', newline='') as file:
writer = csv.writer(file)
writer.writerow(["latitude", "longitude"])
for y in range(upper, lower + 1):
for x in range(left, right + 1):
writer.writerow([(lat_difference * ((x - 3) / (right - left)) + east), \
(long_difference * (y / (upper - lower)) + north)])