Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas astype str still object

df['column'] = df['column'].astype('|S80') #where the max length is set at 80 bytes,
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #astype #str #object
ADD COMMENT
Topic
Name
2+1 =