pandas.Timestamp.combine#

classmethod Timestamp.combine(date, time)#

将日期、时间合并为具有相同日期和时间字段的日期时间。

示例

>>> from datetime import date, time
>>> pd.Timestamp.combine(date(2020, 3, 14), time(15, 30, 15))
Timestamp('2020-03-14 15:30:15')