Skip to content

CLN Update docs and test name for polars output in ColumnTransformer #27902

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sklearn/utils/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def test_is_polars_df_other_libraries(constructor_name, minversion):
assert _is_polars_df(df)


def test_is_polars_df_pandas_not_installed():
def test_is_polars_df_for_duck_typed_polars_dataframe():
"""Check _is_polars_df for object that looks like a polars dataframe"""

class NotAPolarsDataFrame:
Expand Down Expand Up @@ -1992,7 +1992,7 @@ def test_check_array_multiple_extensions(


def test_num_samples_dataframe_protocol():
"""Use DataFrame protocol to get n_samples from polars dataframe."""
"""Use the DataFrame interchange protocol to get n_samples from polars."""
pl = pytest.importorskip("polars")

df = pl.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
Expand Down