Skip to content

Commit 1052f47

Browse files
author
y-p
committed
DOC: Try and clarify tz_localize docstring, always found it confusing
1 parent 3f5916b commit 1052f47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/series.py

+5
Original file line numberDiff line numberDiff line change
@@ -3147,6 +3147,11 @@ def tz_convert(self, tz, copy=True):
31473147
def tz_localize(self, tz, copy=True):
31483148
"""
31493149
Localize tz-naive TimeSeries to target time zone
3150+
Entries will retain their "naive" value but will be annotated as
3151+
being relative to the specified tz.
3152+
3153+
After localizing the TimeSeries, you may use tz_convert() to
3154+
get the Datetime values recomputed to a different tz.
31503155
31513156
Parameters
31523157
----------

0 commit comments

Comments
 (0)