Commit 4439b76
authored
fix: ensure enum columns decode to strings for non-URL dataset paths (#1504)
* fix: ensure enum columns decode to strings for non-URL dataset paths
_pre_encode_enum_columns was only called in build_from_url, so
_enum_columns was never populated when a UKSingleYearDataset or
UKMultiYearDataset was passed directly. The .person/.benunit/.household
properties then returned raw int16 values instead of string enum labels.
Now calls _pre_encode_enum_columns in build_from_single_year_dataset and
guards build_from_multi_year_dataset to encode if not already done.
* style: black formatting
* test: update UC taper reform expected impact to -43.2B1 parent 1ae5c0e commit 4439b76
3 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
435 | 440 | | |
436 | 441 | | |
437 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments