convert objet to int64 pandas code example
Example 1: object to int64 pandas
>>> df['purchase'].astype(str).astype(int)
Example 2: set column datatype pandas
df = pd.read_csv("weather.tsv", sep="\t",
dtype={'Day': str,'Wind':int64})
df.dtypes