Error2 reports
Fix ValueError
in Polars
✅ Solution
ValueError exceptions in Polars often arise from using empty or invalid format strings with string or datetime operations, especially when the GPU engine is enabled. To fix this, ensure that all format strings passed to functions like `.dt.strftime()` or `.str.strptime()` are valid and non-empty. Review the format string documentation for the specific function to understand the required structure.
Related Issues
Real GitHub issues where developers encountered this error:
A `ValueError` (`CUDF failure at: Format parameter must not be empty`) will occur when using `.dt.strftime("")` and the GPU engineJan 22, 2026
A `ValueError` (`CUDF failure at: invalid format specifier: #`) will occur when using `.str.strptime()` with the `invalid` column and the GPU engineJan 22, 2026
Timeline
First reported:Jan 22, 2026
Last reported:Jan 22, 2026