Thanks @wilian, but I meant how could I do this using python because I didnt know, besides which library to use
I figure it out a way to do it:
Imported my csv file into a dataframe
df = pd.read_csv(path)
Then I made a list of the column I needed
list = df['list'].tolist()
Then I turned that list into a single string
list1 = """' , '""".join([str(item) for item in list])
list2 = "'" + list1[:] + "'" + list1[0:0]
Needed to do that way because the SQL Where X IN ('') clause needs to be written with ' and commas
Then I got a single string like this
list2 = 'a','b','c'
Then I used read_sql from pandas using a f'string
query = f"SELECT * FROM table WHERE X IN ({list2})"
result = pd.read_sql(query,conn)