format a column in same datatype in pandas code example
Example 1: set type of column pandas
df.astype(int)
Example 2: astype float across columns pandas
cols = df.columns[df.dtypes.eq('object')]
df.astype(int)
cols = df.columns[df.dtypes.eq('object')]