Probably cheaper to get a competitive rater like insurequote. But if you HAVE to do it yourself:
- start with a rate manual: you can get these on SERFF.
- create all rating tables as pandas data frame
- using whatever way you prefer, join your book with each rating table on the appropriate attribute.
- multiply all the tables together
It is a lot, and I mean a LOT more complicated than that, but that’s the main idea.