change the column type pandas code example
Example 1: set type of column pandas
df.astype(int)
Example 2: set column datatype pandas
df = pd.read_csv("weather.tsv", sep="\t",
dtype={'Day': str,'Wind':int64})
df.dtypes
df.astype(int)
df = pd.read_csv("weather.tsv", sep="\t",
dtype={'Day': str,'Wind':int64})
df.dtypes