Skip to content

Commit

Permalink
fix: error message fix. (#375)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/python-bigquery-dataframes/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
  • Loading branch information
Genesis929 authored Feb 8, 2024
1 parent d5518b2 commit 930cf6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bigframes/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'")
Expand Down
2 changes: 1 addition & 1 deletion bigframes/functions/remote_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion bigframes/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 930cf6b

Please sign in to comment.