Skip to main content
These are the tables that the Python library returns. The RSL results reference describes the JSON that the rslc compiler returns.

Program.rate and Market.rate

One row per submission (a book) or context (a study), in input order. A market’s rows follow context order, then program order. A needs cell is a list of dicts, one per Need: column (the book column for the answer, as table.column), row (that table’s key, or None for the submission itself), message, options (the allowed answers, or None) and reason (missing or ambiguous). The submission’s reason joins the messages. Use program.rate(book, allow_missing=True) or market.rate(book, allow_missing=True) to evaluate partial submissions. A settled submission can price even with some inputs unanswered. On an open row, each entry in gaps names a request path, such as Policy.vehicles[1].annual_mileage. An entry may include choices, more, or a named list from the engine. Keep the submission ID, program, and bundle ID when grouping these paths. The needs column holds the mapper’s requests for book columns. Book and mapper failures take precedence over engine evaluation. A program with a read function has the columns read returns in place of the outcome columns. Each number that read returns is an exact Decimal, and any other value stays as read gives it. A row that has a status other than succeeded has NaN in each outcome column. A market’s program has NaN in each outcome column that its rater leaves out.

RatingResult.to_pandas

One row per input to Rater.rate, in input order. RatingResult.rows holds the same rows with exact values: Decimal numbers, and {"$rational": "p/q"} for a value with an infinite decimal expansion. results[row_id] is one row, by its ID.

Rater.explain

One row per value, inputs first, then calculations in calculation order. Calculation order puts each value after every value it reads. The filed rate pages can order values differently: a factor that reads only inputs and tables can come before the premium that uses it. With provenance=True, each row also says where its value comes from, as the rater’s catalog records it: An input row has its type and citations alone. Program.explain and Market.explain take the same provenance argument and add the same columns.

Program.explain and Market.explain

The Rater.explain table for one submission, with the keys of rate before it. Merge the table with the book or with the rows of rate on its keys. An unrated submission has its input rows only.

Statuses

A status describes rating. A carrier’s underwriting appetite needs its own evidence, joined to the results in pandas.