用法:
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')
相關用法
- Python pandas.Timestamp.ceil用法及代碼示例
- Python pandas.Timestamp.dayofweek用法及代碼示例
- Python pandas.Timestamp.dayofyear用法及代碼示例
- Python pandas.Timestamp.strftime用法及代碼示例
- Python pandas.Timestamp.month_name用法及代碼示例
- Python pandas.Timestamp.to_numpy用法及代碼示例
- Python pandas.Timestamp.days_in_month用法及代碼示例
- Python pandas.Timestamp.asm8用法及代碼示例
- Python pandas.Timestamp.is_quarter_end用法及代碼示例
- Python pandas.Timestamp.timestamp用法及代碼示例
- Python pandas.Timestamp.daysinmonth用法及代碼示例
- Python pandas.Timestamp.replace用法及代碼示例
- Python pandas.Timestamp.round用法及代碼示例
- Python pandas.Timestamp.tz_convert用法及代碼示例
- Python pandas.Timestamp.is_quarter_start用法及代碼示例
- Python pandas.Timestamp.fromordinal用法及代碼示例
- Python pandas.Timestamp.tz用法及代碼示例
- Python pandas.Timestamp.weekofyear用法及代碼示例
- Python pandas.Timestamp.normalize用法及代碼示例
- Python pandas.Timestamp.utcfromtimestamp用法及代碼示例
注:本文由純淨天空篩選整理自pandas.pydata.org大神的英文原創作品 pandas.Timestamp.combine。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。