Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert string column to int list column

df_out['gids'] = df_out['gids'].map(lambda x: list(map(int, filter(None, x.split(' ')))))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #string #column #int #list #column
ADD COMMENT
Topic
Name
2+8 =