Skip to content

Commit

Permalink
fix: correct Polars version check for pl.len function (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Jul 24, 2024
1 parent 82fb963 commit 13355b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_polars/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def len(self) -> PolarsExpr:
from narwhals._polars.expr import PolarsExpr

pl = get_polars()
if self._backend_version < (0, 20, 4): # pragma: no cover
if self._backend_version < (0, 20, 5): # pragma: no cover
return PolarsExpr(pl.count().alias("len"))
return PolarsExpr(pl.len())

Expand Down

0 comments on commit 13355b8

Please sign in to comment.