Skip to content

Commit 8364746

Browse files
DOC: added text in comments to commentary in example #333999
1 parent 293dfef commit 8364746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5548,9 +5548,9 @@ def astype(
55485548
2 2020-01-03
55495549
dtype: datetime64[ns]
55505550
5551-
Convert to datetime type with time zone:
5551+
Convert to datetime type with time zone
5552+
(Behavior - Localize to UTC and convert to US/Eastern):
55525553
5553-
>>> # localize to UTC and convert to US/Eastern time zone
55545554
>>> ser_date.astype('datetime64[ns, US/Eastern]')
55555555
0 2019-12-31 19:00:00-05:00
55565556
1 2020-01-01 19:00:00-05:00

0 commit comments

Comments
 (0)