Rolling Expr claims to support timedelta but doesn't appear to #19825
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
I'm aware that there are expressions such as
rolling_std_by
but many of the standard rolling expressions have type annotations suggesting they also support timedelta. Assuming they shouldn't, the following functions have type annotations that need correcting:Expr.rolling_sum
[src]Expr.rolling_std
[src]Expr.rolling_var
[src]Expr.rolling_median
[src]Expr.rolling_quantile
[src]Expr.rolling_sum
[src]Log output
No response
Issue description
Type annotations appear to support timedelta but I am not convinced they do
Expected behavior
Probably just remove timedelta from annotations.
Installed versions
--------Version info---------
Polars: 1.12.0
Index type: UInt32
Platform: Linux-6.10.11-linuxkit-aarch64-with-glibc2.31
Python: 3.12.7 (main, Oct 2 2024, 00:14:14) [GCC 10.2.1 20210110]
LTS CPU: False
----Optional dependencies----
adbc_driver_manager
altair
cloudpickle
connectorx
deltalake
fastexcel
fsspec 2024.10.0
gevent
great_tables
matplotlib 3.9.2
nest_asyncio 1.6.0
numpy 2.1.2
openpyxl
pandas 2.2.3
pyarrow 17.0.0
pydantic
pyiceberg
sqlalchemy
torch 2.5.1
xlsx2csv
xlsxwriter
The text was updated successfully, but these errors were encountered: