Skip to main content
Generated from the package’s Python API. Homeowners: the line’s schema. SCHEMA (version ho/1.2) lists the tables of a homeowners book, their keys and their core columns: facts with one meaning each, typed and empty unless supplied. A rater derives the rest, such as the age of the home, claim counts in a window or a carrier’s territory. A book needs only submissions and dwellings; policies is built from the submissions’ policy_id unless you pass it. The same tables describe renters (HO-4) and condo (HO-6) forms, whose dwelling row describes the building or unit. Optional exposures rows describe household exposures, with links to insureds, dwellings or other premises in the same submission. Each row holds one exposure, such as a watercraft or an incidental occupancy; its physical facts stay separate from coverage purchases and carrier classifications. Optional payment, system-work, employee and membership rows preserve their actual dates and same-submission relationships. Hazard-vendor results, such as Verisk FireLine, Aon AWHS2020.1 and ZestyAI Z-FIRE, are optional dwelling columns, one set per vendor model, every one named with the set’s prefix <vendor>_<model>; the model part may end in its version (verisk_fireline, aon_awhs_2020_1, zesty_zfire). A set’s columns are:
  • <prefix>_score, or <prefix>_<part>_score when the model reports several scores (zesty_zfire_level_one_score): an int on the vendor’s own scale, bounded to its full published range.
  • Optionally, <prefix>_status for the whole report or <prefix>_<part>_status for one score: an enum of scored and the vendor’s explicit no-result value.
  • Optionally, <prefix>_as_of, <prefix>_report_id, <prefix>_origin and <prefix>_model_reference.
An empty score or status is unknown, as when no report was obtained, distinct from a scored zero and from the no-result value. A model whose scale or meaning differs takes a new prefix, and _model_reference names the approved model when several share a scale. A tier or factor a carrier derives from a score is a program column. A program that needs a vendor not listed declares a set on the same pattern with ho.SCHEMA.with_columns; a later minor that adds it keeps the program loading. coverages is a common protection request. coverage_options holds explicit per-product requests with the same neutral terms. ho.coverages_for(book, program_id) resolves them and preserves the original book; a matching option replaces the whole common row rather than inheriting missing terms. deductible_options and ho.deductibles_for provide the same whole-row choices for the common deductibles. Carrier packages remain declared program columns. Every other column is yours. relativities.Book(tables, schema=ho.SCHEMA) is a homeowners book, and a relativities.Program rates it with one carrier’s rater: its prepare turns the book into that rater’s input.

SCHEMA

The homeowners line’s schema, version ho/1.2 (ho.SCHEMA.version), lists each table, key and core column. Its tables describe household facts, observed histories, physical features, actual coverage selections, deductibles and explicit product options. It covers the HO-2, HO-3, HO-5, HO-4, HO-6, HO-8, DP-1 and DP-3 forms. Pass it as Book(tables, schema=ho.SCHEMA). print(ho.SCHEMA) lists every column, and the homeowners book schema page shows every table.

coverages_for

Return the coverage selections for one homeowners product. coverages holds the common protection request. coverage_options holds explicit product choices, identified by the program’s documented stable program_id. A matching option replaces the entire common row with the same submission, dwelling and coverage. A new coverage appends a row. Other products’ options stay in the book for their own programs. Replacement is by row: a blank option term stays blank, even when the common request supplies that term. Supply the option’s complete selected terms. A zero limit remains an explicit zero for the program to validate; an option row stays a selection even when all its terms are blank. Common rows retain their order. Additional selections follow in option order. The returned DataFrame is an independent copy; the original book keeps its common request and every product choice. Repeated calls return the same selections. Each program still checks its filed limits, mandatory coverages and supported elections when it rates these rows. book must be a homeowners Book with the coverage_options table from ho/1.2. program_id must be nonempty, trimmed text with exact spelling. Invalid arguments raise TypeError or ValueError before resolving any rows.

deductibles_for

Return the deductible selections for one homeowners product. deductibles holds the common requested deductibles. Explicit deductible_options for this stable program_id replace the entire common row with the same submission, dwelling and peril, or add a peril. Replacement clears omitted terms instead of inheriting them. The Book keeps the original request and all product choices unchanged. As with coverages_for, common rows retain order, added rows follow in option order, other products’ options remain for their own programs, and the result is an independent DataFrame. Each program validates whether the selected perils, amounts and percentages are supported. book must be a homeowners Book with the deductible_options table from ho/1.2. program_id must be nonempty, trimmed text with exact spelling. Invalid arguments raise TypeError or ValueError.