for an assignment, I need to read past the first three lines of a csv file using python. I want all the information of the cvs file minus the first three lines, is there a way I can do this using python code? Thanks in advance for any help
def open_temperature_file(filename):
csv_file = open(filename, 'r')
reader = csv.reader(csv_file)
count = 0
for line in reader:
count = count + 1
if count == 3:
break
return reader
Here is the code I've tried. The problem is that after reading after the first three lines, I have no way of saving the rest of the file (only the entire file)