r = "'("
for i in df['columnA']:
r = r+str(i)+"|"
r = r[:-1]+")'"
Last active
January 13, 2020 18:25
-
-
Save wbhinton/6de7b424a407bcf4627b4403a9a926a1 to your computer and use it in GitHub Desktop.
Format a string for SQL IN statement from Pandas Dataframe Column
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment