pd.Timestamp
- pandas.Timestamp(ts_input=
支持的参数
ts_input: 字符串,整数,时间戳,日期时间
unit: 常量字符串
year: 整数
month: 整数
day: 整数
hour: 整数
minute: 整数
second: 整数
microsecond: 整数
nanosecond: 整数
示例用法
>>> @bodo.jit
... def f():
... return I.copy(name="new_name")
... ts1 = pd.Timestamp('2021-12-09 09:57:44.114123')
... ts2 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123)
... ts3 = pd.Timestamp(100, unit="days")
... ts4 = pd.Timestamp(datetime.date(2021, 12, 9), hour = 9, minute=57, second=44, microsecond=114123)
... return (ts1, ts2, ts3, ts4)
>>> f()
(Timestamp('2021-12-09 09:57:44.114123'), Timestamp('2021-12-09 09:57:44.114123'), Timestamp('1970-04-11 00:00:00'), Timestamp('2021-12-09 09:57:44.114123'))