hts.hierarchy¶
hts.hierarchy.utils¶
-
hts.hierarchy.utils.
groupify
(root_node, df, freq='1H', nodes=None, min_count=0.1, total=None) → hts._t.NAryTreeT[source]¶ Parameters: - fillna –
- root_node (NAryTreeT) –
- df (pandas.DataFrame) –
- freq (str) – resample frequency
- nodes (tuple) – Hierarchy node
- min_count (int or float) – Minimum number of observations for a node to be used. If float, it represents a fraction of values that need to be non NaNs and must be between 0 and 1
- total (pandas.DataFrame:) – Name of root node