Posts by Lucas Armand Souza Assis de Ol • 46 points
1 post
-
3
votes1
answer60
viewsA: Error: string indices must be integers in loop
You should use the iterrows function of the panda dataframe. Do something like: for index, Row in df1.iterrows(): data ="{"productCode":"EAN%d"}" % (Row['EAN'])