I downloaded one of the country datasets from geonames and I used this line to parse the dataset into columns:
data = pd.read_csv("C:/Users/Documents/TR.txt", sep="\t", header = None)
But for some reason this doesn't parse all of the rows correctly. Most of the rows are correctly parsed and about 2K are not. I used this line to be able to see that it's not parsed correctly:
data.to_csv("C:/Users/Documents/output.csv")
I then opened the output.csv in excel and saw that some of the rows are not parsed. But when I open the original TR.txt dataset on excel and use tab delimiter all the rows are correctly shown as parsed. So I am doing something wrong in my python code but I can't figure out what. Am I outputting the dataset wrong?? Thank you