Skip to content

Commit f978e67

Browse files
georethmroeschke
andcommitted
Apply suggestions from code review
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent ca4fcdc commit f978e67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10140,7 +10140,7 @@ def tz_convert(
1014010140
Parameters
1014110141
----------
1014210142
tz : str or tzinfo object or None
10143-
Time zone to convert index to. Passing ``None`` will convert to
10143+
Target time zone. Passing ``None`` will convert to
1014410144
UTC and remove the timezone information.
1014510145
axis : the axis to convert
1014610146
level : int, str, default None
@@ -10169,7 +10169,7 @@ def tz_convert(
1016910169
2018-09-15 07:30:00+08:00 1
1017010170
dtype: int64
1017110171
10172-
Convert to UTC and get a tz-naive index:
10172+
Pass None to convert to UTC and get a tz-naive index:
1017310173
1017410174
>>> s = pd.Series([1],
1017510175
... index=pd.DatetimeIndex(['2018-09-15 01:30:00+02:00']))
@@ -10227,7 +10227,7 @@ def tz_localize(
1022710227
Parameters
1022810228
----------
1022910229
tz : str or tzinfo or None
10230-
Time zone to convert the index to. pass ``None`` will remove the
10230+
Time zone to localize. Passing ``None`` will remove the
1023110231
time zone information and preserve local time.
1023210232
axis : the axis to localize
1023310233
level : int, str, default None
@@ -10284,7 +10284,7 @@ def tz_localize(
1028410284
2018-09-15 01:30:00+02:00 1
1028510285
dtype: int64
1028610286
10287-
Convert to tz-naive index and preserve local time:
10287+
Pass None to convert to tz-naive index and preserve local time:
1028810288
1028910289
>>> s = pd.Series([1],
1029010290
... index=pd.DatetimeIndex(['2018-09-15 01:30:00+02:00']))

0 commit comments

Comments
 (0)