pandas dataframe float64 to int code example
Example 1: python: transform as type numeirc
df['myvar'] = df['myvar'].astype(str) # Transform as character
df['myvar'] = df['myvar'].astype(float) # Transform as float
df['myvar'] = df['myvar'].astype(int) # Transform as numeric
Example 2: set column datatype pandas
df = pd.read_csv("weather.tsv", sep="\t",
dtype={'Day': str,'Wind':int64})
df.dtypes