My question is somewhat the same as Python list of String to SQL IN parameter but I have a list of integers. The python code I use is:
ids = [1000032, 100004
you should cast the array of int to array of strings:
",".join(map(str,ids))