I have a .csv file I wish to read with Python (3.x) using csv package. However, the program truncates the beginning of the file (first 44797 rows).
The .csv file in question can be downloaded from this link: https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data/downloads/new-york-city-airbnb-open-data.zip/3
file = "C:\\Users\\Owner\\Pictures\\Camera Roll\\new-york-city-airbnb-
open-data\\AB_NYC_2019.csv"
rowsn = []
coln = []
with open(file, encoding="utf8") as csvfile:
csvreader = csv.reader(csvfile)
coln.append(0)
for row in csvreader:
rowsn.append(row)
print("Appending" + str(row))
for q in rowsn:
for r in q:
print(r, end=" ")
print("\n")
I expected the entire file to be printed on the terminal row by row. However,the first 44797 rows do not appear on the screen. Please help. Thanks.