pandas.Series.tz_localize

Series.tz_localize(tz, copy=True, infer_dst=False)

Localize tz-naive TimeSeries to target time zone Entries will retain their “naive” value but will be annotated as being relative to the specified tz.

After localizing the TimeSeries, you may use tz_convert() to get the Datetime values recomputed to a different tz.

Parameters:

tz : string or pytz.timezone object

copy : boolean, default True

Also make a copy of the underlying data

infer_dst : boolean, default False

Attempt to infer fall dst-transition hours based on order

Returns:

localized : TimeSeries