pandas.DataFrame Column
Jump to navigation
Jump to search
A pandas.DataFrame Column is a Tabular Data Structure Column for a pandas.DataFrame Data Structure.
- Context:
- It can (typically) have a pandas.DataFrame Column Data Type, such as:
float,int,bool,datetime64[ns],timedelta[ns], andobject. - …
- It can (typically) have a pandas.DataFrame Column Data Type, such as:
- Counter-Example(s):
- See: SQL Table Column.
References
2014
- http://pandas.pydata.org/pandas-docs/stable/basics.html#dtypes
- The main types stored in pandas objects are
float,int,bool,datetime64[ns],timedelta[ns], andobject. In addition these dtypes have item sizes, e.g.int64andint32. A convenientdtypesattribute for DataFrames returns a Series with the data type of each column.
- The main types stored in pandas objects are
dft = DataFrame(dict( A = np.random.rand(3),
B = 1,
C = 'foo',
D = Timestamp('20010102'),
E = Series([1.0]*3).astype('float32'),
F = False,
G = Series([1]*3,dtype='int8')))
...
dft.dtypes
A float64
B int64
C object
D datetime64[ns]
E float32
F bool
G int8