Extract magic row limit variable
This commit is contained in:
parent
83dfce1a61
commit
ed7ed620d4
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ with app.setup:
|
||||||
import marimo as mo
|
import marimo as mo
|
||||||
import polars as pl
|
import polars as pl
|
||||||
|
|
||||||
|
LIMIT_ROWS = 200
|
||||||
|
|
||||||
|
|
||||||
@app.cell(hide_code=True)
|
@app.cell(hide_code=True)
|
||||||
def _():
|
def _():
|
||||||
|
|
@ -111,7 +113,7 @@ def _():
|
||||||
def _():
|
def _():
|
||||||
df = (
|
df = (
|
||||||
pl.scan_ndjson("data/daily/*", include_file_paths="file")
|
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(
|
.with_columns(
|
||||||
pl.col("file")
|
pl.col("file")
|
||||||
.str.replace(r"data/daily/(\d{4}-\d{2}-\d{2}).json", "${1}")
|
.str.replace(r"data/daily/(\d{4}-\d{2}-\d{2}).json", "${1}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue