Read visitor data from a csv file

Please read the pinned thread in order to understand how to post code with proper formatting, so that we can see the code as you actually have it. Especially in Python it is not possible to look for problems properly, unless the code is properly formatted.

Please also show whatever error message you get, by copying and pasting, starting from the line that says Traceback (most recent call last):, all the way to the end, and formatting it the same way as the code. This way we can understand what problem was reported to you. It’s not always possible to guess what is wrong just by looking at the code, because it could also depend on what is in your CSV file - or, indeed, whether you have the CSV file that you’re expecting to have, in the place that Python is looking for it.