Dec-24-2020, 08:53 PM
I'm new too and I ask much more than I answer at this point.
However, I was messing around with dates and datetimes today because my current project makes use of them.
Dates and datetimes are different. Whether you import datetime and/or date from datetime can make a difference. There's also timedelta, which may be imported (from datetime) and can be used to add/subtract dates to get resultant time intervals. You can change from datetime to integer by taking .day attribute of a datetime object, for example.
I would suggest playing around with all these things to find exactly what may suit your needs. I'm not sure parse_dates=parse_dates is enough to cover everything.
However, I was messing around with dates and datetimes today because my current project makes use of them.
Dates and datetimes are different. Whether you import datetime and/or date from datetime can make a difference. There's also timedelta, which may be imported (from datetime) and can be used to add/subtract dates to get resultant time intervals. You can change from datetime to integer by taking .day attribute of a datetime object, for example.
I would suggest playing around with all these things to find exactly what may suit your needs. I'm not sure parse_dates=parse_dates is enough to cover everything.