I have to read a .csv file that contains Frequency, amplitude and duration in each line separated by commas.
My code looks like,
The problem I am having is that it reads the last line twice and I don't know why that happens. Is there any other way I can read the .csv file accurately?
Answer with explanation would be greatly appreciated.