Skip to content

Commit ac7c674

Browse files
committed
remove to_pydatetime
1 parent 99e1fc2 commit ac7c674

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/arrays/datetimes.py

-2
Original file line numberDiff line numberDiff line change
@@ -1235,11 +1235,9 @@ def _generate_regular_range(cls, start, end, periods, freq):
12351235
tz = None
12361236
if isinstance(start, Timestamp):
12371237
tz = start.tz
1238-
start = start.to_pydatetime()
12391238

12401239
if isinstance(end, Timestamp):
12411240
tz = end.tz
1242-
end = end.to_pydatetime()
12431241

12441242
xdr = generate_range(start=start, end=end,
12451243
periods=periods, offset=freq)

0 commit comments

Comments
 (0)