I am probably making a stupid mistake, but I can\'t find where it is. I want to count the number of lines in my csv file. I wrote this, and obviously isn\'t working: I have
If you are working with python3 and have pandas library installed you can go with
import pandas as pd results = pd.read_csv('f.csv') print(len(results))