I'd like to find the number of months between today and a date field in a python polars dataframe.
How do you do that?
(datetime.today() - pl.col('mydate')).dt.days()
returns it only in days.
I'd like to find the number of months between today and a date field in a python polars dataframe.
How do you do that?
(datetime.today() - pl.col('mydate')).dt.days()
returns it only in days.