Skip to content

Commit 66e9703

Browse files
authored
Update datetimes.py
change some issues be metioned at pandas-dev#35342
1 parent bfac136 commit 66e9703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/arrays/datetimes.py

+1
Original file line numberDiff line numberDiff line change
@@ -2398,6 +2398,7 @@ def generate_range(start=None, end=None, periods=None, offset=BDay()):
23982398

23992399
elif end and not offset.is_on_offset(end):
24002400
end = offset.rollback(end)
2401+
end = Timestamp(str(end).split(' ')[0] + ' 23:59:59')
24012402

24022403
if periods is None and end < start and offset.n >= 0:
24032404
end = None

0 commit comments

Comments
 (0)