def to_table(self, **kwargs):
    '\n        Return an Astropy Table of the give TimeSeries object.\n\n        Returns\n        -------\n        newtable : `~astrpy.table`\n            A new astropy table containing the data from the time series.\n            The table will include units where relevant.\n        '
    table = Table.from_pandas(self.data)
    index_col = Column(self.data.index.values, name='date')
    table.add_column(index_col, index=0)
    for key in self.units:
        table[key].unit = self.units[key]
    return table
Return an Astropy Table of the give TimeSeries object.

Returns
-------
newtable : `~astrpy.table`
    A new astropy table containing the data from the time series.
    The table will include units where relevant.
def to_table(self, **kwargs):
    '\n        Return an Astropy Table of the give TimeSeries object.\n\n        Returns\n        -------\n        newtable : `~astrpy.table`\n            A new astropy table containing the data from the time series.\n            The table will include units where relevant.\n        '
    table = Table.from_pandas(self.data)
    index_col = Column(self.data.index.values, name='date')
    table.add_column(index_col, index=0)
    for key in self.units:
        table[key].unit = self.units[key]
    return table