diff --git a/narwhals/_arrow/selectors.py b/narwhals/_arrow/selectors.py index e82a99c0b..c48caeab7 100644 --- a/narwhals/_arrow/selectors.py +++ b/narwhals/_arrow/selectors.py @@ -30,14 +30,14 @@ def by_dtype(self: Self, dtypes: list[DType | type[DType]]) -> ArrowSelector: def func(df: ArrowDataFrame) -> list[ArrowSeries]: return [df[col] for col in df.columns if df.schema[col] in dtypes] - def evalute_output_names(df: ArrowDataFrame) -> Sequence[str]: + def evaluate_output_names(df: ArrowDataFrame) -> Sequence[str]: return [col for col in df.columns if df.schema[col] in dtypes] return ArrowSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, version=self._version, @@ -48,14 +48,14 @@ def matches(self: Self, pattern: str) -> ArrowSelector: def func(df: ArrowDataFrame) -> list[ArrowSeries]: return [df[col] for col in df.columns if re.search(pattern, col)] - def evalute_output_names(df: ArrowDataFrame) -> Sequence[str]: + def evaluate_output_names(df: ArrowDataFrame) -> Sequence[str]: return [col for col in df.columns if re.search(pattern, col)] return ArrowSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, version=self._version, diff --git a/narwhals/_dask/selectors.py b/narwhals/_dask/selectors.py index 1e49ceee9..8c11bd890 100644 --- a/narwhals/_dask/selectors.py +++ b/narwhals/_dask/selectors.py @@ -35,14 +35,14 @@ def func(df: DaskLazyFrame) -> list[dx.Series]: df._native_frame[col] for col in df.columns if df.schema[col] in dtypes ] - def evalute_output_names(df: DaskLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: DaskLazyFrame) -> Sequence[str]: return [col for col in df.columns if df.schema[col] in dtypes] return DaskSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, returns_scalar=False, @@ -56,14 +56,14 @@ def func(df: DaskLazyFrame) -> list[dx.Series]: df._native_frame[col] for col in df.columns if re.search(pattern, col) ] - def evalute_output_names(df: DaskLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: DaskLazyFrame) -> Sequence[str]: return [col for col in df.columns if re.search(pattern, col)] return DaskSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, returns_scalar=False, diff --git a/narwhals/_duckdb/selectors.py b/narwhals/_duckdb/selectors.py index f11927ad4..4f1bcab13 100644 --- a/narwhals/_duckdb/selectors.py +++ b/narwhals/_duckdb/selectors.py @@ -34,13 +34,13 @@ def func(df: DuckDBLazyFrame) -> list[duckdb.Expression]: ColumnExpression(col) for col in df.columns if df.schema[col] in dtypes ] - def evalute_output_names(df: DuckDBLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: DuckDBLazyFrame) -> Sequence[str]: return [col for col in df.columns if df.schema[col] in dtypes] return DuckDBSelector( func, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, expr_kind=ExprKind.TRANSFORM, @@ -53,13 +53,13 @@ def func(df: DuckDBLazyFrame) -> list[duckdb.Expression]: ColumnExpression(col) for col in df.columns if re.search(pattern, col) ] - def evalute_output_names(df: DuckDBLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: DuckDBLazyFrame) -> Sequence[str]: return [col for col in df.columns if re.search(pattern, col)] return DuckDBSelector( func, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, expr_kind=ExprKind.TRANSFORM, diff --git a/narwhals/_pandas_like/selectors.py b/narwhals/_pandas_like/selectors.py index 48bf63a04..bb9b9aee0 100644 --- a/narwhals/_pandas_like/selectors.py +++ b/narwhals/_pandas_like/selectors.py @@ -35,14 +35,14 @@ def by_dtype(self: Self, dtypes: Iterable[DType | type[DType]]) -> PandasSelecto def func(df: PandasLikeDataFrame) -> list[PandasLikeSeries]: return [df[col] for col in df.columns if df.schema[col] in dtypes] - def evalute_output_names(df: PandasLikeDataFrame) -> Sequence[str]: + def evaluate_output_names(df: PandasLikeDataFrame) -> Sequence[str]: return [col for col in df.columns if df.schema[col] in dtypes] return PandasSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, implementation=self._implementation, backend_version=self._backend_version, @@ -54,14 +54,14 @@ def matches(self: Self, pattern: str) -> PandasSelector: def func(df: PandasLikeDataFrame) -> list[PandasLikeSeries]: return [df[col] for col in df.columns if re.search(pattern, col)] - def evalute_output_names(df: PandasLikeDataFrame) -> Sequence[str]: + def evaluate_output_names(df: PandasLikeDataFrame) -> Sequence[str]: return [col for col in df.columns if re.search(pattern, col)] return PandasSelector( func, depth=0, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, implementation=self._implementation, backend_version=self._backend_version, diff --git a/narwhals/_spark_like/selectors.py b/narwhals/_spark_like/selectors.py index d2534cb14..244138516 100644 --- a/narwhals/_spark_like/selectors.py +++ b/narwhals/_spark_like/selectors.py @@ -36,13 +36,13 @@ def by_dtype(self: Self, dtypes: Iterable[DType | type[DType]]) -> SparkLikeSele def func(df: SparkLikeLazyFrame) -> list[Column]: return [df._F.col(col) for col in df.columns if df.schema[col] in dtypes] - def evalute_output_names(df: SparkLikeLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: SparkLikeLazyFrame) -> Sequence[str]: return [col for col in df.columns if df.schema[col] in dtypes] return SparkLikeSelector( func, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, expr_kind=ExprKind.TRANSFORM, @@ -54,13 +54,13 @@ def matches(self: Self, pattern: str) -> SparkLikeSelector: def func(df: SparkLikeLazyFrame) -> list[Column]: return [df._F.col(col) for col in df.columns if re.search(pattern, col)] - def evalute_output_names(df: SparkLikeLazyFrame) -> Sequence[str]: + def evaluate_output_names(df: SparkLikeLazyFrame) -> Sequence[str]: return [col for col in df.columns if re.search(pattern, col)] return SparkLikeSelector( func, function_name="selector", - evaluate_output_names=evalute_output_names, + evaluate_output_names=evaluate_output_names, alias_output_names=None, backend_version=self._backend_version, expr_kind=ExprKind.TRANSFORM, diff --git a/narwhals/series.py b/narwhals/series.py index c71f99082..f76944ed6 100644 --- a/narwhals/series.py +++ b/narwhals/series.py @@ -2073,7 +2073,7 @@ def alias(self: Self, name: str) -> Self: - if you need to alias an object and don't need the original one around any more, just use `alias` without worrying about it. - - if you were expecting `alias` to copy data, then explicily call + - if you were expecting `alias` to copy data, then explicitly call `.clone` before calling `alias`. Arguments: @@ -2151,7 +2151,7 @@ def rename(self: Self, name: str) -> Self: - if you need to rename an object and don't need the original one around any more, just use `rename` without worrying about it. - - if you were expecting `rename` to copy data, then explicily call + - if you were expecting `rename` to copy data, then explicitly call `.clone` before calling `rename`. Arguments: