DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit