I have a dataframe
such as: store_id
, store_name
, and number_of_orders
:
store_id name cbpr_ordes
0 900004468 [F] | Starbucks | STAR 013 1
1 900038719 Julice Boulangere Pães 1
And for each row I would like to print something like this: "Hello, the (store_id) had (number_of_orders) in the last 15 minutes"
I tried this:
for row in df:
print("Hello, the store_id " + str(df['store_id']) + " had " + str(df['cbpr_ordes']))
But I got:
Hello, the store_id 0 900004468
1 900038719
Name: store_id, dtype: object had 0 1
1 1
Name: cbpr_ordes, dtype: object
Hello, the store_id 0 900004468
1 900038719
Name: store_id, dtype: object had 0 1
1 1
Name: cbpr_ordes, dtype: object
Hello, the store_id 0 900004468
1 900038719
Name: store_id, dtype: object had 0 1
1 1
Name: cbpr_ordes, dtype: object