Skip to content

Commit

Permalink
skip polars for pre 1.4.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Aug 19, 2024
1 parent 7e23bcb commit c51a3e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_meta/test_grouped_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
import polars as pl
import pytest
import sklearn
from sklearn import clone
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import Pipeline
Expand Down Expand Up @@ -394,6 +395,9 @@ def test_transform_with_y(transformer):

@pytest.mark.parametrize(("frame_func", "transform_output"), [(pd.DataFrame, "pandas"), (pl.DataFrame, "polars")])
def test_set_output(penguins_df, frame_func, transform_output):
if transform_output == "polars" and sklearn.__version__ < "1.4.0":
pytest.skip()

X = frame_func(penguins_df.drop(columns=["sex"]))
y = penguins_df["sex"]

Expand Down

0 comments on commit c51a3e7

Please sign in to comment.