-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support freezegun-manipulated datetimes #7809
Comments
Ref: #6713. |
I'll give this a go after work, I think it should be possible |
Ups, thanks @alexander-beedie, I misspelled freezegun in my search. Updated issue title and comment. |
@nezinomas just FYI, this should work in the next release |
@MarcoGorelli @ritchie46 Is it possible that this partially broke with the 1.0 release? I am right now upgrading from import datetime
import polars as pl
from freezegun import freeze_time
with freeze_time("2012-01-14"):
pl.lit(datetime.date.today())
|
@MarcoGorelli Great, thanks for looking into this. I will upgrade to 1.5 then and skip 1.6. |
Problem description
In some of our unit tests and benchmarks, we use the relatively popular freezegun package to manipulate system time. However, when I try to create a data frame that consists such a mocked date time, I get an error:
Solution
It would be great if bindings for this object type would be supported. We are transitioning from pandas and there it seemed to always have worked out of the box
(could not find an issue in GitHub with 'freezegun' in it). Thanks a lot for this library, it's a game changer for us. Hear my system info FWIW.The text was updated successfully, but these errors were encountered: