Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/tests/unit/dataframe/test_shape.py
6939 views
1
import pytest
2
3
import polars as pl
4
5
6
# TODO: remove this skip when streaming raises
7
@pytest.mark.may_fail_auto_streaming
8
@pytest.mark.may_fail_cloud
9
def test_raise_invalid_shape_19108() -> None:
10
df = pl.DataFrame({"foo": [1, 2], "bar": [3, 4]})
11
with pytest.raises(pl.exceptions.ShapeError):
12
df.select(pl.col.foo.head(0), pl.col.bar.head(1))
13
14