Skip to content

Commit c9df577

Browse files
author
Abu Jabar Mubarak
authored
TEST: Add engine='polars' support test for read_csv
1 parent d39a26b commit c9df577

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pytest
2+
3+
def test_read_csv_with_polars(tmp_path):
4+
pl = pytest.importorskip("polars")
5+
pd = pytest.importorskip("pandas")
6+
7+
file = tmp_path / "data.csv"
8+
file.write_text("a,b\n1,2\n3,4")
9+
10+
df = pd.read_csv(file, engine="polars")
11+
assert df.shape == (2, 2)
12+
assert list(df.columns) == ["a", "b"]

0 commit comments

Comments
 (0)