Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas change dtype to string

df['id'].astype(str)
0    1
1    5
2    z
3    1
4    1
5    7
6    2
7    6
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #change #dtype #string
ADD COMMENT
Topic
Name
2+2 =