Search
 
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
Name
5+9 =