P
python
Hi-
I have a lot of monthly time series data. I need to be able to compare
two dates and get the number of months that they are apart.
The datetime module is a daily-frequency data type. It has a timedelta
object that returns the difference in days between two dates:
31
I want to be able to compare monthly-frequency data, so that I can do
something like this:
6
Does anyone have any suggestions about how to do something like this?
Thanks for the help.
I have a lot of monthly time series data. I need to be able to compare
two dates and get the number of months that they are apart.
The datetime module is a daily-frequency data type. It has a timedelta
object that returns the difference in days between two dates:
31
I want to be able to compare monthly-frequency data, so that I can do
something like this:
6
Does anyone have any suggestions about how to do something like this?
Thanks for the help.