Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dtype in pandas

df = pd.DataFrame({'float': [1.0],
                   'int': [1],
                   'datetime': [pd.Timestamp('20180310')],
                   'string': ['foo']})
df.dtypes
float              float64
int                  int64
datetime    datetime64[ns]
string              object
dtype: object
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #dtype #pandas
ADD COMMENT
Topic
Name
6+4 =