pandas.DatetimeIndex.tz_localize¶
- DatetimeIndex.tz_localize(tz, infer_dst=False)¶
Localize tz-naive DatetimeIndex to given time zone (using pytz)
Parameters: tz : string or pytz.timezone
Time zone for time. Corresponding timestamps would be converted to time zone of the TimeSeries
infer_dst : boolean, default False
Attempt to infer fall dst-transition hours based on order
Returns: localized : DatetimeIndex