Johannes Weytjens

Blog

Notes on turning messy data into something you can model, mostly in Python.Follow along with the RSS feed.

Cache slow computations until their code changes

A decorator that saves a slow function’s DataFrame to disk and loads it on the next call. It recomputes only when the function’s code changes, ignoring comments and formatting. Apr 1, 2023