From ed7ed620d47c53de7368271926656870b56cc622 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 28 Sep 2025 19:34:43 +0200 Subject: [PATCH] Extract magic row limit variable --- popcorn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/popcorn.py b/popcorn.py index de6199d..6f11f4f 100644 --- a/popcorn.py +++ b/popcorn.py @@ -13,6 +13,8 @@ with app.setup: import marimo as mo import polars as pl + LIMIT_ROWS = 200 + @app.cell(hide_code=True) def _(): @@ -111,7 +113,7 @@ def _(): def _(): df = ( pl.scan_ndjson("data/daily/*", include_file_paths="file") - .head(200) # FIXME: take out after debug + .head(LIMIT_ROWS) # FIXME: take out after debug .with_columns( pl.col("file") .str.replace(r"data/daily/(\d{4}-\d{2}-\d{2}).json", "${1}")