Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
after investigate the code, there is no error with our codes, but rather the issue with the csv. The csv last line is empty. Remove the last line and it will work.
you can edit that csv file by using notepad or other plain text editor