Skip to content

Commit 52b54a6

Browse files
georethmroeschke
andauthored
Apply suggestions from code review
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 050b5ac commit 52b54a6

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
@@ -10136,7 +10136,7 @@ def tz_convert(
1013610136
Parameters
1013710137
----------
1013810138
tz : str or tzinfo object or None
10139-
Time zone to convert index to. Passing ``None`` will convert to
10139+
Target time zone. Passing ``None`` will convert to
1014010140
UTC and remove the timezone information.
1014110141
axis : the axis to convert
1014210142
level : int, str, default None
@@ -10165,7 +10165,7 @@ def tz_convert(
1016510165
2018-09-15 07:30:00+08:00 1
1016610166
dtype: int64
1016710167
10168-
Convert to UTC and get a tz-naive index:
10168+
Pass None to convert to UTC and get a tz-naive index:
1016910169
1017010170
>>> s = pd.Series([1],
1017110171
... index=pd.DatetimeIndex(['2018-09-15 01:30:00+02:00']))
@@ -10223,7 +10223,7 @@ def tz_localize(
1022310223
Parameters
1022410224
----------
1022510225
tz : str or tzinfo or None
10226-
Time zone to convert the index to. pass ``None`` will remove the
10226+
Time zone to localize. Passing ``None`` will remove the
1022710227
time zone information and preserve local time.
1022810228
axis : the axis to localize
1022910229
level : int, str, default None
@@ -10280,7 +10280,7 @@ def tz_localize(
1028010280
2018-09-15 01:30:00+02:00 1
1028110281
dtype: int64
1028210282
10283-
Convert to tz-naive index and preserve local time:
10283+
Pass None to convert to tz-naive index and preserve local time:
1028410284
1028510285
>>> s = pd.Series([1],
1028610286
... index=pd.DatetimeIndex(['2018-09-15 01:30:00+02:00']))

0 commit comments

Comments
 (0)