Filtering triangle on multiple indexes #318
-
This is from the Triangles tutorial. How do you filter when want to search mulltiple indexes, say GrpName =AEGIS AND lob=GL? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Interesting we don't talk about that but could be useful for people new to chainladder and new to pandas. It would be the same as you would in clrd[(clrd['GRNAME']=='Aegis Grp')&(clrd['LOB']=='othliab')] |
Beta Was this translation helpful? Give feedback.
-
Thanks so much that was very helpful. It throws me, because I think of this triangle as a 5-dimensional array, but I guess its still only a four dimensional one. Is there recommended tutorials for pandas as it pertains to chainladder. Same question for scikit. |
Beta Was this translation helpful? Give feedback.
-
The CAS is hosting a virtual workshop in a couple weeks that covers pandas, scikit-learn, and chainladder among other things in more detail. This workshop aims to reinforce python skills across all three packages, but it is not free. For free, self-guided options, it's been a while since I've looked and there has been a ton of development. I can only assume that the pandas getting started section is the most definitive resource. Similarly, the scikit-learn tutorials are also a reasonable place to start. If someone newer to learning python has any thoughts, please comment. |
Beta Was this translation helpful? Give feedback.
-
Indeed, resources mentioned by @jbogaardt are great. Moreover, I have also found courses in online learning portals like coursera and udemy to be helpful for self-learning. Usually these courses are free or financial aid is available. Though there is scarcity of specific tutorials for pandas pertaining to ChainLadder, I found https://www.udemy.com/share/1013ko/ [Data Analysis with Pandas and Python] course in udemy super helpful. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Interesting we don't talk about that but could be useful for people new to chainladder and new to pandas.
It would be the same as you would in
pandas
. You can chain any number of boolean expressions together to subset your data.