Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import csv
- my_path = 'Insert here the path to your file'
- with open(my_path, 'file_name.csv', 'rb') as my_file:
- my_file_reader = cvs.reader(my_file)
- for row in my_file_reader:
- print row # or test something else
- # PS: Credits to RealPython where I learnt the above algorithm ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement