In my code there is a function contains a csv reader like following
def preprocessing_file(file_path):
out = []
with open(file_path,'r') as f_in:
lines = csv.reader(f_in)
next(lines)
out.append(lines)
return out
when I run this code the terminal shows me messages below
File "preprocessing.py", line 14, in preprocessing_file
next(lines)
StopIteration
This problem occur after I make these section a function, before it the code works fine.
Anyone know whats the problem?