Repository navigation
Commit a3445db
[bug] jtypes: a polars Categorical column hung the encoder (polars 1.32+)
From polars 1.32 a Categorical's dtype.categories is a global registry
whose __getitem__ answers every index, so list() of it never ended (the
Python 3.9 CI job hung). Only an Enum has a fixed category list, taken
with to_list(); a Categorical's keys come from its values, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 54d218f commit a3445db
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
519 | 521 | | |
520 | 522 | | |
521 | 523 | | |
| |||
0 commit comments