ENH: Support ts object