Skip to content

Conversation

@vahid-ahmadi
Copy link
Collaborator

Summary

  • Use region.values == "SCOTLAND" instead of region == "SCOTLAND" for consistent behavior with pandas StringArray types
  • This matches the pattern used in test files and avoids potential issues with StringArray comparisons

Changes

  • scotland_children_under_16: use region.values
  • scotland_babies_under_1: use region.values

🤖 Generated with Claude Code

vahid-ahmadi and others added 4 commits January 21, 2026 18:37
Use region.values == "SCOTLAND" instead of region == "SCOTLAND" for
consistent behavior with StringArray types. This matches the pattern
used in test files and avoids potential issues with pandas StringArray
comparisons.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove version pinning from black in CI workflow
- Add changelog entry for region.values fix

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Match the pattern used in test_scotland_babies.py for consistency:
- Keep region as Series (no .values on calculate)
- Use region.values in comparison

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vahid-ahmadi vahid-ahmadi merged commit 4a12215 into main Jan 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants