Skip to content

Commit aecb986

Browse files
DOC: added a more generic behavior statement as suggested. pandas-dev#33399
1 parent 8364746 commit aecb986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5549,7 +5549,8 @@ def astype(
55495549
dtype: datetime64[ns]
55505550
55515551
Convert to datetime type with time zone
5552-
(Behavior - Localize to UTC and convert to US/Eastern):
5552+
(Behavior - Datetimes are localized to UTC first
5553+
before converting to the specified timezone):
55535554
55545555
>>> ser_date.astype('datetime64[ns, US/Eastern]')
55555556
0 2019-12-31 19:00:00-05:00

0 commit comments

Comments
 (0)