Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set column datatype pandas

df = pd.read_csv("weather.tsv", sep="	",  
                 dtype={'Day': str,'Wind':int64})
df.dtypes
Source by cmdlinetips.com #
 
PREVIOUS NEXT
Tagged: #set #column #datatype #pandas
ADD COMMENT
Topic
Name
9+6 =