I have 5 cloumns in a df. I want to cast the column "occurrence" to timestamp. I have a piece of code shown below which does the work when I just put the actual string. How do I modify the code to convert the entire occurrence column to a timestamp? I am very new to python and I really appreciate your guidance here
import uuid
import time_uuid
from datetime import datetime
my_uuid = uuid.UUID("2255270f-3310-11e9-7f7f-7f7f7f7f7f7f")
ts = time_uuid.TimeUUID(bytes=my_uuid.bytes).get_timestamp()
print(datetime.utcfromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S'))