PeriodIndex.tz_localize(tz, infer_dst=False)[source]

Localize tz-naive DatetimeIndex to given time zone (using pytz/dateutil), or remove timezone from tz-aware DatetimeIndex


tz : string, pytz.timezone, or None

Time zone for time. Corresponding timestamps would be converted to time zone of the TimeSeries. None will remove timezone holding local time.

infer_dst : boolean, default False

Attempt to infer fall dst-transition hours based on order


localized : DatetimeIndex

Scroll To Top