Answers for "change types of integer dataframe"

3

column dataframe to int

df[[column_name]].astype(int)
Posted by: Guest on April-21-2021
4

set column datatype pandas

df = pd.read_csv("weather.tsv", sep="\t",  
                 dtype={'Day': str,'Wind':int64})
df.dtypes
Posted by: Guest on October-14-2020

Code answers related to "change types of integer dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language