Skip to content

feat: serialize table units, ttest by domain, GLM term structure; from_dict - #313

Merged
MamadouSDiallo merged 2 commits into
mainfrom
feat/serialize-renderer-asks
Oct 16, 2026
Merged

MamadouSDiallo merged 2 commits into
mainfrom
feat/serialize-renderer-asks

Conversation

@MamadouSDiallo

Copy link
Copy Markdown
Contributor

Schema svy-result/0.9; every new field is optional, so older payloads decode with None.

  • TableData.units (and Table.units): "proportion", "percent" or "count".
  • ttest(..., by=...) serializes as ttest_one_group_by / ttest_two_groups_by (one results list of a single member type; kind stays a plain field, so no struct union). to_polars(data) matches the live result, row_index counts through members.
  • GLMFitData.terms (type, levels, reference, value labels); GLMCoefData.label and parts, one (variable, level) per factor, interactions included, taken from the fit's dummy map, not the column name.
  • svy.serialize.from_dict; decode errors name from_dict or from_json.
  • Fix: GroupLevelsData.labels, so a serialized two-group t-test keeps its <group>_label column.
  • DESIGN.md: kind is not msgspec's tag_field; 0.9 fields documented.

Golden fixtures regenerated (version bump and the new fields only). test_every_serializable_kind_has_a_table now allows one serializer with two kinds.

…m_dict

svy-result/0.9. Optional fields, so older payloads decode. Also carries a
two-group t-test's group labels, which serialization dropped.
…er-asks

# Conflicts:
#	packages/svy/CHANGELOG.md
@MamadouSDiallo
MamadouSDiallo merged commit a76f737 into main Oct 16, 2026
12 checks passed
@MamadouSDiallo
MamadouSDiallo deleted the feat/serialize-renderer-asks branch October 16, 2026 17:00
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.

1 participant