Open alecloudenback opened 3 years ago
Would it make sense to provide the same tables from Pymort's "Relational Tables API"? Open to feedback on the structure of the tables.
@MatthewCaseres are you suggesting providing some sort of "table set" interface (e.g. a way to get all of CS0 2017 together) or about the layout of the tables themselves (i.e. how a "long" version of the tables should look)?
I think both? I reconsidered my original idea of what a long mortality table was, and now am just trying to replicate the structure of a relational database, so that is what influences the design of the Relational()
object.
Table groupings are derived from the metadata table's study/group fields. I am about to ship this - https://github.com/actuarialopensource/pymort/commit/8bdfec8cb80ab71100ae5d27109ae4bdf64ae20f which takes the metadata table and provides the table set interface.
The end goal is that I can do this -
group = getGroup(3209)
ultimates = jnp.array([MortXML(id).tables[0].Table.numpy for id in group])
End goal of #109
Preliminary work completed in example here: https://juliaactuary.org/tutorials/mortalitytablesdataframe/
To-dos
long
the right function name?