Skip to content

Commit

Permalink
update 'test_series.py'
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Feb 29, 2024
1 parent 6815901 commit 4928719
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 241 deletions.
3 changes: 2 additions & 1 deletion modin/pandas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,9 @@ def error_raiser(msg, exception=Exception):
for fn in func:
if isinstance(fn, str):
if not (hasattr(self, fn) or hasattr(np, fn)):
type_short_name = "DataFrame" if self._is_dataframe else "Series"

Check warning on line 415 in modin/pandas/base.py

View check run for this annotation

Codecov / codecov/patch

modin/pandas/base.py#L415

Added line #L415 was not covered by tests
on_invalid(
f"{fn} is not valid function for {type(self)} object.",
f"'{fn}' is not a valid function for '{type_short_name}' object",
AttributeError,
)
elif not callable(fn):
Expand Down
Loading

0 comments on commit 4928719

Please sign in to comment.