astype oandas
>>> df.astype('int32').dtypes
col1 int32
col2 int32
dtype: object
Mohammed Albaqer
>>> df.astype('int32').dtypes
col1 int32
col2 int32
dtype: object