Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

dataframe column data type

df.dtypes
Comment

how to find the datatype of a dataframe in python

df.dtypes
Comment

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
Comment

PREVIOUS NEXT
Code Example
Python :: how to execute python program in ubuntu 
Python :: take array of string in python 
Python :: python read from stdin 
Python :: django sort descending 
Python :: remove rows from pandas dataframe that have text 
Python :: python mysqlclient not installing 
Python :: lecture de fichier python 
Python :: python version command 
Python :: descending python dataframe df 
Python :: pytest check exception 
Python :: ip regex python 
Python :: python jokes 
Python :: rename key in dict python 
Python :: python datetime get all days between two dates 
Python :: python print utf-8 
Python :: python fill 0 
Python :: python remove nan rows 
Python :: subprocess print logs 
Python :: set cookie in chrome 
Python :: case insensitive replace python 
Python :: python copy an object 
Python :: python reverse split only once 
Python :: how to create empty series in pandas 
Python :: mongodb aggregate count 
Python :: download images python google 
Python :: how to use timeit in python 3 
Python :: is power of python recursion 
Python :: how to write to a netcdf file using xarray 
Python :: how to select python 3 interpreter in linux 
Python :: python datetime day of year 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =