Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(python): Support PyCapsule Interface in DataFrame & Series constructors #17693

Merged
merged 12 commits into from
Jul 25, 2024
5 changes: 0 additions & 5 deletions py-polars/tests/unit/constructors/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,11 +958,6 @@ def _constructor(self) -> type:
assert df.schema == {"colx": pl.Datetime("us")}
assert df.rows() == [(datetime(2022, 10, 31, 10, 30, 45, 123456),)]

# pandas is not available
monkeypatch.setattr(pl.dataframe.frame, "_check_for_pandas", lambda x: False)
with pytest.raises(TypeError):
pl.DataFrame(pandas_df)

kylebarron marked this conversation as resolved.
Show resolved Hide resolved

def test_init_errors() -> None:
# Length mismatch
Expand Down