@@ -10133,9 +10133,13 @@ def tz_convert(
10133
10133
"""
10134
10134
Convert tz-aware axis to target time zone.
10135
10135
10136
+ To convert to UTC and get a tz-naive axis, pass tz=None.
10137
+
10136
10138
Parameters
10137
10139
----------
10138
- tz : str or tzinfo object
10140
+ tz : str or tzinfo object or None
10141
+ Time zone to convert index to. Passing ``None`` will convert to
10142
+ UTC and remove the timezone information.
10139
10143
axis : the axis to convert
10140
10144
level : int, str, default None
10141
10145
If axis is a MultiIndex, convert a specific level. Otherwise
@@ -10200,9 +10204,14 @@ def tz_localize(
10200
10204
This operation localizes the Index. To localize the values in a
10201
10205
timezone-naive Series, use :meth:`Series.dt.tz_localize`.
10202
10206
10207
+ This method can also used to do the inverse -- to get a tz-naive index
10208
+ from a time zone aware index, pass tz=None.
10209
+
10203
10210
Parameters
10204
10211
----------
10205
- tz : str or tzinfo
10212
+ tz : str or tzinfo or None
10213
+ Time zone to convert the index to. pass ``None`` will remove the
10214
+ time zone information and preserve local time.
10206
10215
axis : the axis to localize
10207
10216
level : int, str, default None
10208
10217
If axis ia a MultiIndex, localize a specific level. Otherwise
0 commit comments