Re:Adding Window Functions to a Spreadsheet
by whizzter on Wednesday November 04, 2026 @10:53AM
(#50367374)
What parts are Python and how does one know where the classic Spreadsheet functionality ends and Python starts ?
[ Parent
| on HN ]
Re:Adding Window Functions to a Spreadsheet
by librasteve on Wednesday November 04, 2026 @11:21AM
(#50367819)
that’s why https://omasheet.org has its own DSL. that said it’s no doubt go some wrinkles so I’ll be reviewing all the comments on this hn post very carefully
Re:Adding Window Functions to a Spreadsheet
by whizzter on Thursday November 05, 2026 @08:58AM
(#50379121)
Not entirely uninteresting, wrote some thoughts in your main comment thread.
Re:Adding Window Functions to a Spreadsheet
by dsagal on Wednesday November 04, 2026 @12:45PM
(#50369002)
"classic Spreadsheet functionality" is just familiar Excel functions with uppercase names implemented in Python, right here: https://github.com/gristlabs/grist-core/tree/main/sandbox/gr...
E.g. UPPER($A) is just a function that calls $A.upper(). And $A is just syntactic sugar over rec.A.
PREVIOUS() is only special in that it automatically creates an index, which is important for efficiency. But generally you can look up a set of records and write multi-line Python code to do whatever you want with it and return a value. And it all runs in a sandbox with no access to anything except this document's data.