Skip to content

Commit

Permalink
🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Dec 28, 2024
1 parent fb12579 commit 73e2076
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions narwhals/_polars/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,6 @@ def lit(self: Self, value: Any, dtype: DType | None = None) -> PolarsExpr:
pl.lit(value), version=self._version, backend_version=self._backend_version
)

def mean(self: Self, *column_names: str) -> PolarsExpr:
import polars as pl

from narwhals._polars.expr import PolarsExpr

return PolarsExpr(
pl.mean([*column_names]), # type: ignore[arg-type]
version=self._version,
backend_version=self._backend_version,
)

def mean_horizontal(self: Self, *exprs: IntoPolarsExpr) -> PolarsExpr:
import polars as pl

Expand All @@ -160,17 +149,6 @@ def mean_horizontal(self: Self, *exprs: IntoPolarsExpr) -> PolarsExpr:
backend_version=self._backend_version,
)

def median(self: Self, *column_names: str) -> PolarsExpr:
import polars as pl

from narwhals._polars.expr import PolarsExpr

return PolarsExpr(
pl.median([*column_names]), # type: ignore[arg-type]
version=self._version,
backend_version=self._backend_version,
)

def concat_str(
self,
exprs: Iterable[IntoPolarsExpr],
Expand Down

0 comments on commit 73e2076

Please sign in to comment.