I have a Dataframe of 100 rows. I want to loop that through in chunks of 10 and have it run through a SQL query
Given below is how the Dataframe looks like with 100 rows:
prod_id
123
124
125
126
127
I am trying to run this in a loop and pass it into the below query in chunks of 10 rows each time
query = "select * from table WHERE prod_id = {i}"
df = pd.DataFrame(list(session.execute(query)))
How can I pass the values from the Dataframe in chunks into the SQL query