.. include:: references.txt .. |join| replace:: :func:`~astropy.table.join` .. |Quantity| replace:: :class:`~astropy.units.Quantity` .. |Time| replace:: :class:`~astropy.time.Time` .. |SkyCoord| replace:: :class:`~astropy.coordinates.SkyCoord` .. _mixin_columns: Mixin columns *************** Version 1.0 of astropy introduces a new concept of the "Mixin Column" in tables which allows integration of appropriate non-|Column| based class objects within a |Table| object. These mixin column objects are not converted in any way but are used natively. The available built-in mixin column classes are: - |Quantity| and subclasses - |SkyCoord| and coordinate frame classes - |Time| and :class:`~astropy.time.TimeDelta` - :class:`~astropy.coordinates.EarthLocation` - `~astropy.table.NdarrayMixin` As a first example we can create a table and add a time column:: >>> from astropy.table import Table >>> from astropy.time import Time >>> t = Table() >>> t['index'] = [1, 2] >>> t['time'] = Time(['2001-01-02T12:34:56', '2001-02-03T00:01:02']) >>> print(t) index time ----- ----------------------- 1 2001-01-02T12:34:56.000 2 2001-02-03T00:01:02.000 The important point here is that the ``time`` column is a bona fide |Time| object:: >>> t['time']