Let's say one of the datetime column as below
PORT['ISSUE_DT']
0 2019-01-31 1 2018-10-24 2 2018-11-16 3 2018-11-16 4 2018-11-16
How can I convert it to Quanlib Date quickly? I can convert one element as below, are there any methods without using 'for'?
#DATA_DT
d = PORT['ISSUE_DT'][0]
#convert datetime to qt Date
d_qt =Date(d.day, d.month, d.year)
I know there is apply function like R, but I don't know how to deal with apply with the class attribute .