Commit 031de87
Bump policyengine-core to 3.23.5 for pandas 3.0 compatibility (#1492)
* Bump policyengine-core to 3.23.5 for pandas 3.0 compatibility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add test for pandas 3.0 enum encoding compatibility
Adds tests to verify that policyengine-core 3.23.5 correctly handles
pandas Series with StringDtype index when encoding enums. This ensures
the fix using .iloc[0] for positional access works as expected.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* [TDD DEMO] Pin core to 3.23.4 to demonstrate test failure
This commit intentionally pins policyengine-core to 3.23.4 (before the
pandas 3.0 fix) to demonstrate that the test_pandas3_enum_encoding test
fails without the fix. The next commit will revert to >=3.23.5.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* [TDD DEMO] Bump core to >=3.23.5 to fix pandas 3.0 compatibility
This commit restores policyengine-core>=3.23.5, which includes the fix
for pandas 3.0 enum encoding (using .iloc[0] instead of array[0]).
The previous commit demonstrated the test failure. This commit shows
the test passing with the fix in place.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Bump microdf-python to >=1.2.1 for pandas 3.0 compatibility
microdf 1.2.1 includes the fix for pandas 3.0 Copy-on-Write
compatibility in MicroDataFrame column access.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Fix black formatting in test file
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Bump policyengine-core to >=3.23.6 for pandas 3.0 StringArray fix
Core 3.23.6 fixes TypeError: unhashable type: 'StringArray' when using
pandas StringArray for parameter lookups (issue #429 in policyengine-core).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 54330ae commit 031de87
4 files changed
Lines changed: 50 additions & 2 deletions
File tree
- policyengine_uk/tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments