for i in range(0, len(df)): s+=df.iloc[i]['code']+" "+df.iloc[i]['name']+" "+df.iloc[i]['price']+"\n"