As of polars 1.8.x (but not 1.7.x), partition_by with as_dict=True strips leading zeros from strings on the partition column #18895
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Leading zeros have been stripped from the keys
dict_keys([('1',), ('10',), ('foo',)])
Expected behavior
I would have expected the first key to remain unchanged (with the leading zero)
dict_keys([('01',), ('0010',), ('10',), ('foo',)])
Installed versions
Broken on 1.8.1. This used to work on 1.7.1.
The text was updated successfully, but these errors were encountered: