bayesline.api.equity.settings_tools#
Functions
|
Assert that the hierarchy is not empty or has empty branches. |
|
Check that all hierarchy codes have corresponding labels. |
|
Check that all hierarchies have unique codes. |
|
Return the hierarchy with all codes replaced by their labels. |
|
Return the hierarchy based on the include and exclude filters. |
|
Return the leaves based on the include and exclude filters. |
|
Filter the labels to only include those present in the hierarchy. |
|
Filter leaves in a hierarchy based on a predicate function. |
|
Find a needle in a hierarchy. |
|
Find the depth of a needle in a hierarchy. |
|
Flatten a hierarchical structure into a list of codes. |
|
Get the depth of a hierarchy. |
|
Convert a hierarchy to a wide DataFrame. |
|
Convert a hierarchy to a DataFrame. |
|
Return the hierarchy with all labels replaced by their codes. |
|
Apply a function to all codes in a hierarchy. |
|
Process the excludes (prefixed with ~) for a hierarchy. |
|
Trim a hierarchy to a given depth. |
|
Validate the hierarchy filters. |
|
Validate that a hierarchy schema exists in the available schemas. |