diff --git a/rdt/transformers/numerical.py b/rdt/transformers/numerical.py index 6ed40e16b..f85e21a05 100644 --- a/rdt/transformers/numerical.py +++ b/rdt/transformers/numerical.py @@ -112,7 +112,7 @@ def _learn_rounding_digits(data): return decimal # Can't round, not equal after MAX_DECIMALS digits of precision - LOGGER.info(f"No rounding scheme detected for column '{name}'. Data will not be rounded.") + LOGGER.info("No rounding scheme detected for column '%s'. Data will not be rounded.", name) return None def _raise_out_of_bounds_error(self, value, name, bound_type, min_bound, max_bound): diff --git a/tests/unit/transformers/test_numerical.py b/tests/unit/transformers/test_numerical.py index 95f2ff95d..36d26aad8 100644 --- a/tests/unit/transformers/test_numerical.py +++ b/tests/unit/transformers/test_numerical.py @@ -37,8 +37,8 @@ def test__learn_rounding_digits_more_than_15_decimals(self, logger_mock): output = FloatFormatter._learn_rounding_digits(data) # Assert - logger_msg = "No rounding scheme detected for column 'col'. Data will not be rounded." - logger_mock.info.assert_called_once_with(logger_msg) + logger_msg = "No rounding scheme detected for column '%s'. Data will not be rounded." + logger_mock.info.assert_called_once_with(logger_msg, 'col') assert output is None def test__learn_rounding_digits_less_than_15_decimals(self):