how to convert a datetime.time() object to datetime.datetime object pandas
问题 import pandas as pd import datetime df = pd.DataFrame([{'st':datetime.datetime.strptime('21:00:00','%H:%M:%S').time(),'et':datetime.datetime.strptime('22:00:00','%H:%M:%S').time()}, {'st':datetime.datetime.strptime('1:00:00','%H:%M:%S').time(),'et':datetime.datetime.strptime('3:00:00','%H:%M:%S').time()}]) Out[183]: df et st 0 22:00:00 21:00:00 1 03:00:00 01:00:00 I would like to be able to convert the above dataframe with new fields having datetime.datetime objects with two other extra