python series to list of string code example
Example: python series to list of string
# With series of int zipcodes:
zip_strs = us_zips['zipcode'].astype(str).values.tolist()
# Resulting list:
['10601', '60047', '50301', '10606']
# With series of int zipcodes:
zip_strs = us_zips['zipcode'].astype(str).values.tolist()
# Resulting list:
['10601', '60047', '50301', '10606']