Repository navigation
Install or upgrade: pip install -U modeleon
- Total columns after the last period —
mo.ExcelView(timeline={'totals': ['quarter', 'year'], 'totals_at': 'end'})stands every total column after the last period (Jan … Dec, Total Q1 … Total Q4, Total 2026), so a function that reads a whole row as one range —MATCH,INDEX,XLOOKUP,LARGE,RANK, a percentile,MAXIFS— stays a live formula.'between', the form 0.2.4 writes, stays the default. - A row read across total columns is written as its runs — with totals between the periods,
SUM,AVERAGE,MIN,MAX,COUNT,MEDIAN,NPV, … take one argument per run (=SUM(Data!C5:E5, Data!G5:I5, …)), andCOUNTIF(S)/SUMIF(S)/AVERAGEIF(S)are one call per run — live where 0.2.4 wrote the number.check_compatnames the way out for a reader of one ordered range. - Calls per record are much faster — a rank per record over 10,000 records builds in about 2 seconds instead of 42, a
SUMIFSper record over 50 groups in about 4.5 instead of 115, each in about 100 MB instead of 3 to 4 GB. - Metric columns speak the model's language — Var, Var %, Share, % of PY; tracks named in Cyrillic read «откл», «откл %», «уд. вес», «% роста».
- Fixes: the header rows a workbook repeats at the top carry their totals; a total column's formula reads the months, not the other totals; total columns stand finest first, whatever order the kinds are declared in.
Behaviour changes: the year-on-year metric column is captioned "% of PY" (0.2.4: "Growth %") — this period as a percent of the same one a year earlier; a metric column is captioned in the model's language, whichever spelling selected it; a statistic over a list holding a tracked line reads its lines by date and key by key, as the same call over them one by one does.
The full list is in CHANGELOG.md.