def _to_embed(self, keep_tz=False):
        if keep_tz and self.tz is not None:

            # preserve the tz & copy
            return self.copy(deep=True)

        return self.values.copy()
return an array repr of this object, potentially casting to object
dataset/ETHPy150Open pydata/pandas/pandas/tseries/index.py/DatetimeIndex._to_embed