I am trying to convert a pandas.tslib.Timestamp
object to datetime
.df['orig_iss_dt']
is the pandas.tslib.Timestamp
object. I used the answer here to try and do this, but find that print(type(origination))
still returns the same type.
df['orig_iss_dt'] = df['orig_iss_dt'].apply(lambda x: datetime.date(x.year,x.month,x.day))
for (i, row) in df:
origination = row.orig_iss_dt
print(type(origination))