Just cast the key to str()
and enumerate()
:
d = {str(i): value for i, value in enumerate(targets)}
or use formatting if you need to prepend the keys with a string:
d = {'column{}'.format(i): value for i, value in enumerate(targets)}
The key and value expressions in a dict comprehension are just that, python expressions.