I have a pandas dataframe that has a column of IDs. I need to run another sql query whose \'WHERE\' clause is dictated by all of the IDs in the aforementioned column.
for this to work for me I had to surround the list items with single quotes.
str = ','.join(["'" + str(x) + "'" for x in df1['IDs'].tolist()])