From f96217287c194528c5862d399343da27f5080f11 Mon Sep 17 00:00:00 2001 From: Shreesha Kumar Bhat Date: Fri, 30 Jun 2023 17:12:39 +0530 Subject: [PATCH] MAINT Fix typo in function name check_global_ouptut_transform_pandas (#26718) --- sklearn/tests/test_common.py | 6 +++--- sklearn/utils/estimator_checks.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/tests/test_common.py b/sklearn/tests/test_common.py index adc62bc0fd307..9ff5bf21c9a7d 100644 --- a/sklearn/tests/test_common.py +++ b/sklearn/tests/test_common.py @@ -75,7 +75,7 @@ check_dataframe_column_names_consistency, check_estimator, check_get_feature_names_out_error, - check_global_ouptut_transform_pandas, + check_global_output_transform_pandas, check_n_features_in_after_fitting, check_param_validation, check_set_output_transform, @@ -596,9 +596,9 @@ def test_global_output_transform_pandas(estimator): name = estimator.__class__.__name__ if not hasattr(estimator, "set_output"): pytest.skip( - f"Skipping check_global_ouptut_transform_pandas for {name}: Does not" + f"Skipping check_global_output_transform_pandas for {name}: Does not" " support set_output API yet" ) _set_checking_parameters(estimator) with ignore_warnings(category=(FutureWarning)): - check_global_ouptut_transform_pandas(estimator.__class__.__name__, estimator) + check_global_output_transform_pandas(estimator.__class__.__name__, estimator) diff --git a/sklearn/utils/estimator_checks.py b/sklearn/utils/estimator_checks.py index aa6bef16a1b81..d1dc35159fe2c 100644 --- a/sklearn/utils/estimator_checks.py +++ b/sklearn/utils/estimator_checks.py @@ -4504,7 +4504,7 @@ def check_set_output_transform_pandas(name, transformer_orig): ) -def check_global_ouptut_transform_pandas(name, transformer_orig): +def check_global_output_transform_pandas(name, transformer_orig): """Check that setting globally the output of a transformer to pandas lead to the right results.""" try: