I am reading this data from my framework and getting it as below:
mped_date = pd.to_datetime(metadata['MPED'].values[0])
>> mped_date: 2017-12-31 00:00:00
type(mped_date)
>> mped_date: <class 'pandas._libs.tslib.Timestamp'>
I have other variables which are of type date and I am unable to compare this with them.I get the below error
TypeError: Cannot compare type 'Timestamp' with type 'date'
Can someone guide me to convert the mped_date to date type ?