Skip to content

Commit

Permalink
fixing doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
teyaberg committed Aug 10, 2024
1 parent 85b49c3 commit c9595f2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/MEDS_tabular_automl/describe_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,18 @@ def filter_parquet(fp: Path, allowed_codes: list[str]) -> pl.LazyFrame:
... }).write_parquet(fp.name)
>>> filter_parquet(fp.name, ["A/code", "D/static/present", "E/code", "E/value"]).collect()
shape: (6, 3)
┌──────┬────────────┬─────────────────
│ code ┆ time ┆ numeric_value
│ --- ┆ --- ┆ ---
│ str ┆ str ┆ i64
╞══════╪════════════╪═════════════════
│ A ┆ 2021-01-01 ┆ null
│ A ┆ 2021-01-01 ┆ null
│ D ┆ null ┆ null
│ D ┆ null ┆ null
│ E ┆ 2021-01-03 ┆ null
│ E ┆ 2021-01-04 ┆ 3
└──────┴────────────┴─────────────────
┌──────┬────────────┬───────────────┐
│ code ┆ time ┆ numeric_value │
│ --- ┆ --- ┆ --- │
│ str ┆ str ┆ i64 │
╞══════╪════════════╪═══════════════╡
│ A ┆ 2021-01-01 ┆ null │
│ A ┆ 2021-01-01 ┆ null │
│ D ┆ null ┆ null │
│ D ┆ null ┆ null │
│ E ┆ 2021-01-03 ┆ null │
│ E ┆ 2021-01-04 ┆ 3 │
└──────┴────────────┴───────────────┘
>>> fp.close()
"""
df = pl.scan_parquet(fp)
Expand Down

0 comments on commit c9595f2

Please sign in to comment.