- class sakkara.relation.groupset.GroupSet(groups: Dict[str, Group])#
Set of group nodes used for PyMC model creation
- sakkara.relation.groupset.get_parent_df(df: DataFrame) DataFrame#
Create a matrix of parent mappings between columns in a dataframe
- Parameters:
df – Dataframe (with C columns) to base parent mappings of.
:return Dataframe of size CxC with parent mappings. Rows are sorted from highest to lowest hierarchy level. Element (i,j) True means that j is a parent to i.