How to resolve the typeerror int object is not subscriptable?
To resolve the typeerror int object is not subscriptable: reader is a dataframe, since you want to iterate the rows you need to use the function iterrows:
import pandas as pd
reader = pd.read_csv('counts.csv', header = None)
for , row in reader.iterrows():
label = row[2]
print('row ',rowno,' label:', label)