I am trying to convert columns of data in date format to an integer using a referenced date, 01/10/2021 (0). For example, 01/07/2021 would equal 92 and 10/10/2021 equals -9.
It can be done in excel but pandas generate a TypeError when trying to subtract the dates from the reference date.
TypeError: unsupported operand type(s) for -: 'str' and 'str'