def __init__(self, data, meta=None, units=None, **kwargs):
    self.data = data
    tr = self.time_range
    if (meta is None):
        self.meta = TimeSeriesMetaData(MetaDict(), tr, list(self.data.columns.values))
    elif isinstance(meta, (dict, OrderedDict, MetaDict)):
        self.meta = TimeSeriesMetaData(meta, tr, list(self.data.columns.values))
    elif isinstance(meta, tuple):
        self.meta = TimeSeriesMetaData(meta, tr, list(self.data.columns.values))
    else:
        self.meta = meta
    if (units is None):
        self.units = {}
    else:
        self.units = units
def __init__(self, data, meta=None, units=None, **kwargs):
    self.data = data
    tr = self.time_range
    if (meta is None):
        self.meta = TimeSeriesMetaData(MetaDict(), tr, list(self.data.columns.values))
    elif isinstance(meta, (dict, OrderedDict, MetaDict)):
        self.meta = TimeSeriesMetaData(meta, tr, list(self.data.columns.values))
    elif isinstance(meta, tuple):
        self.meta = TimeSeriesMetaData(meta, tr, list(self.data.columns.values))
    else:
        self.meta = meta
    if (units is None):
        self.units = {}
    else:
        self.units = units