|
本帖最后由 sheeboard 于 2018-5-4 20:43 编辑
from datetime import datetime
cc=pd.concat([aa,bb],axis=1)
def combin_dt(x):
c=datetime.combine(datetime.strptime(str(x['date']),'%Y%m%d').date(),datetime.strptime(str(x['time']),'%H%M%S').time())
return '{:%Y%m%d %H: %M: %S}'.format(c)
cc.apply(combin_dt,axis=1) |
|