You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(revenue_tree): a single group loses its group label #602
What:RevenueTree with group_col drops the group label when the data has exactly one group. The result gets a RangeIndex instead of store=Downtown. Checked on main @ c5f4b2a.
Cause:revenue_tree.py:70-73 in calc_tree_kpis resets the index when len(df.index) == period_count. That condition is meant to detect "no group_col", but one group also aggregates to two rows. The same reset fires with two groups when one is missing from a period. The decision should rest on whether group_col is set, not on the row count.
Activity