From cf64464f54573171831ef960d158f93d2e93bf35 Mon Sep 17 00:00:00 2001 From: Huan Chen Date: Thu, 8 Feb 2024 01:20:41 +0000 Subject: [PATCH] fix: error message fix. --- bigframes/dataframe.py | 4 ++-- bigframes/functions/remote_function.py | 2 +- bigframes/series.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bigframes/dataframe.py b/bigframes/dataframe.py index 2729d23701..9db567a497 100644 --- a/bigframes/dataframe.py +++ b/bigframes/dataframe.py @@ -1532,7 +1532,7 @@ def _filter_rows( ) -> DataFrame: if len(self._block.index_columns) > 1: raise NotImplementedError( - "Method filter does not support rows multiindex. {constants.FEEDBACK_LINK}" + f"Method filter does not support rows multiindex. {constants.FEEDBACK_LINK}" ) if (like is not None) or (regex is not None): block = self._block @@ -1760,7 +1760,7 @@ def dropna( ) -> DataFrame: if inplace: raise NotImplementedError( - "'inplace'=True not supported. {constants.FEEDBACK_LINK}" + f"'inplace'=True not supported. {constants.FEEDBACK_LINK}" ) if how not in ("any", "all"): raise ValueError("'how' must be one of 'any', 'all'") diff --git a/bigframes/functions/remote_function.py b/bigframes/functions/remote_function.py index dfffbe65ac..c7bb5d92c6 100644 --- a/bigframes/functions/remote_function.py +++ b/bigframes/functions/remote_function.py @@ -880,7 +880,7 @@ def read_gbq_function( ibis_signature = ibis_signature_from_routine(routine) except ReturnTypeMissingError: raise ValueError( - "Function return type must be specified. {constants.FEEDBACK_LINK}" + f"Function return type must be specified. {constants.FEEDBACK_LINK}" ) except bigframes.dtypes.UnsupportedTypeError as e: raise ValueError( diff --git a/bigframes/series.py b/bigframes/series.py index 753e195e0a..74580989f3 100644 --- a/bigframes/series.py +++ b/bigframes/series.py @@ -1242,7 +1242,7 @@ def filter( ) if len(self._block.index_columns) > 1: raise NotImplementedError( - "Method filter does not support rows multiindex. {constants.FEEDBACK_LINK}" + f"Method filter does not support rows multiindex. {constants.FEEDBACK_LINK}" ) if (like is not None) or (regex is not None): block = self._block