Skip to content

ENH: Add tz_localize and tz_convert to Series.dt methods #8187

Closed
@TomAugspurger

Description

@TomAugspurger
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions