python pandas convert comma separated number string to integer list
# string with list of numbers strOne = '656217, 656228' # converting strOne to a list of strings # then iterating over it converting each string to an integer lstOutput = [int(i) for i in strOne.split(',')] # printing list to view values in a list without quotes print(lstOutput)