-
Notifications
You must be signed in to change notification settings - Fork 80
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
Stats for datetimes #3007
base: main
Are you sure you want to change the base?
Stats for datetimes #3007
Conversation
06cbfed
to
79790e0
Compare
|
||
|
||
class Histogram(TypedDict): | ||
hist: list[int] | ||
bin_edges: list[Union[int, float]] | ||
|
||
|
||
class DatetimeHistogram(TypedDict): | ||
hist: list[int] | ||
bin_edges: list[str] # edges are string representations of dates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orjson supports datetime serialization though, maybe I should return datetimes then?
transformed_column_name: str, | ||
min_date: datetime.datetime, | ||
) -> pl.DataFrame: | ||
return data.select((pl.col(column_name) - min_date).dt.total_seconds().alias(transformed_column_name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
operate on seconds
currently not passing, bug on polars side?
…er into datetime-stats
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
not sure it works as expected
test fail is not reproduced locally
to debug why test is not passed in CI but works locally
No description provided.