change column type rto list of int code example
Example 1: set column datatype pandas
df = pd.read_csv("weather.tsv", sep="\t",
dtype={'Day': str,'Wind':int64})
df.dtypes
Example 2: astype float across columns pandas
cols = df.columns[df.dtypes.eq('object')]