ENH: Add tz_localize and tz_convert to Series.dt methods · Issue #8187 · pandas-dev/pandas (original) (raw)

In [6]: s = pd.Series(pd.date_range(start='2014-01-01', periods=30, freq='d'))

In [7]: s.dt.tz_localize('US/Central')

Would return a Series with the same index whose values are Timestamps with the timezone set.

I haven't looked at this code too closely, so I'm not sure how difficult it would be and if it's doable for 0.15.

@hayd brought it up on SO: http://stackoverflow.com/questions/25656826/speeding-up-timestamp-operations/25657249?noredirect=1#comment40118386_25657249