Incorrect error message raised for Polars.DataFrame.rolling
: error is about index column not period
#20081
Open
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
The error was raised for
period
however the actual error was due to the index_columndt
being str. According to the error message, the index_column was supposed to be one of the named types.Expected behavior
Error message should be raised for
dt
(i.e., the index column but it seems that the index column wasn't required to be of datetime object, so I guess it is when the index column should be a datetime object, the error is raised for it not being a datetime), notperiod
.Installed versions
The text was updated successfully, but these errors were encountered: