I\'m using python (Django Framework) to read a CSV file. I pull just 2 lines out of this CSV as you can see. What I have been trying to do is store in a variable the total n
You can also use a classic for loop:
import pandas as pd df = pd.read_csv('your_file.csv') count = 0 for i in df['a_column']: count = count + 1 print(count)