Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Apr 30, 2024
1 parent ccafd81 commit f453a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narwhals/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def func(plx: Any) -> Any:
not hasattr(plx, "_implementation")
and (pl := get_polars()) is not None
and parse_version(pl.__version__) < parse_version("0.20.4")
):
return plx.count() # pragma: no cover
): # pragma: no cover
return plx.count()
return plx.len()

return Expr(func)
Expand Down

0 comments on commit f453a95

Please sign in to comment.