Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

df convert dtypes

dfn = df.convert_dtypes()
>>> dfn
   a  b      c     d     e      f
0  1  x   True     h    10   <NA>
1  2  y  False     i  <NA>  100.5
2  3  z   <NA>  <NA>    20  200.0
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #df #convert #dtypes
ADD COMMENT
Topic
Name
5+8 =