Hello Cathy, I had the same issue, turn out that it is the blank line that is getting inserted after appending to the CSV. Use the following code (assuming you are using python3):

with open('.data/places.csv', mode='a', newline='') as csv_file:

instead of

with open('.data/places.csv', mode='a') as csv_file:

Best of Luck!

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900