I have to find difference between two date columns in python dataframe and to compare whether difference is greater than 120 or not
if working_data['CLAIMS_EVENT_DATE'] - working_data['LAST_LAPSED_DATE'] > 120:
I got below Error
invalid_comparison .format(dtype=left.dtype, typ=type(right).name))
TypeError: Invalid comparison between dtype=timedelta64[ns] and int
(working_data['CLAIMS_EVENT_DATE'] - working_data['LAST_LAPSED_DATE']).dt.days >120