Skip to content

Commit 2a50548

Browse files
deepyamancosmicBboy
authored andcommitted
Mark unsupported scenario with element-wise checks (#2046)
Signed-off-by: Deepyaman Datta <[email protected]>
1 parent 05c3346 commit 2a50548

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/ibis.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,17 @@ class ModelWithDFChecks(pa.DataFrameModel):
411411
"""Return a table with multiple boolean columns."""
412412
return data.table.select(s.across(s.all(), _ > 0))
413413
414-
@pa.dataframe_check(element_wise=True)
415-
def is_positive_element_wise(cls, x: int) -> bool:
416-
"""Take a single value and return a boolean scalar."""
417-
return x > 0
418-
419414
420415
t = ibis.memtable({"a": [2, 3, 4], "b": [1, 2, 3]})
421416
validated_t = t.pipe(ModelWithDFChecks.validate)
422417
print(validated_t)
423418
```
424419

420+
:::{warning}
421+
Element-wise checks using ``DataFrameModel`` are not yet supported in
422+
the Ibis integration; use ``DataFrameSchema`` instead.
423+
:::
424+
425425
## Supported and Unsupported Functionality
426426

427427
Since the Pandera-Ibis integration is less mature than pandas support, some

0 commit comments

Comments
 (0)