DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
change dataframe column type
>>> df.astype({'col1': 'int32'}).dtypes col1 int32 col2 int64 dtype: object
Source by pandas.pydata.org #
PREVIOUS
NEXT
Tagged:
#change
#dataframe
#column
#type
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit