标签:span pytho pandas time lib medium amp 输出类型 lan
pandas时间:
p1=pd.Timestamp(2018,2,3)
p1输出:2018-02-03 00:00:00
p1输出类型:<class ‘pandas._libs.tslib.Timestamp‘>
pandas时间转到时间戳:
pd.Timestamp.timestamp(p1)
备注:发现pandas时间戳和python时间戳基准值不一样,所以处理时要么统一用pandas时间戳,要么统一用python时间戳
例如:
timestamp = pd.Timestamp.timestamp(pd.Timestamp(time)) # 时间戳
标签:span pytho pandas time lib medium amp 输出类型 lan
原文地址:https://www.cnblogs.com/guxh/p/8998657.html