accounts = pd.read_csv('C:/*******/New_export.txt', sep=",", dtype={'number': object})
accounts.columns = ["Number", "F"]
for i, j in accounts["Number"].iterrows(): #i represents the row(index number), j is the number
if (str(j) == "27*******5"):
print(accounts["F"][i], accounts["Number"][i])
I get the following error:
AttributeError: 'Series' object has no attribute 'iterrows'
I don't quite understand the error since "accounts" is a pandas dataframe. Please assist.