PFA the code:
def Expiry_Time(x): x.Date=pd.to_datetime(x.Date) x.Expiry=pd.to_datetime(x.Expiry) options[\'Expiry_Time\']=(x.Expiry - x.Date).dt.days