pandas change dtype of multiple columns code example Example: astype float across columns pandas cols = df.columns[df.dtypes.eq('object')]