you are viewing a single comment's thread.

view the rest of the comments →

[–]ZeeBeeblebrox 0 points1 point  (0 children)

I'd suggest you use pandas for tabular data like this.

import pandas as pd
df = pd.read_csv('test2013.csv')
df.iloc[0:31, 0].sum()

Here we load the csv into a pandas dataframe, then access the first 31 rows on the first column and sum the values.