File tree Expand file tree Collapse file tree 11 files changed +21
-21
lines changed Expand file tree Collapse file tree 11 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 26
26
from narwhals ._expression_parsing import combine_evaluate_output_names
27
27
from narwhals .typing import CompliantNamespace
28
28
from narwhals .utils import Implementation
29
- from narwhals .utils import get_columns
29
+ from narwhals .utils import get_column_names
30
30
from narwhals .utils import import_dtypes_module
31
31
from narwhals .utils import is_compliant_expr
32
32
@@ -160,7 +160,7 @@ def all(self: Self) -> ArrowExpr:
160
160
],
161
161
depth = 0 ,
162
162
function_name = "all" ,
163
- evaluate_output_names = get_columns ,
163
+ evaluate_output_names = get_column_names ,
164
164
alias_output_names = None ,
165
165
backend_version = self ._backend_version ,
166
166
version = self ._version ,
Original file line number Diff line number Diff line change 10
10
from narwhals ._arrow .expr import ArrowExpr
11
11
from narwhals .utils import _parse_time_unit_and_time_zone
12
12
from narwhals .utils import dtype_matches_time_unit_and_time_zone
13
- from narwhals .utils import get_columns
13
+ from narwhals .utils import get_column_names
14
14
from narwhals .utils import import_dtypes_module
15
15
16
16
if TYPE_CHECKING :
@@ -83,7 +83,7 @@ def all(self: Self) -> ArrowSelector:
83
83
def func (df : ArrowDataFrame ) -> list [ArrowSeries ]:
84
84
return [df [col ] for col in df .columns ]
85
85
86
- return selector (self , func , get_columns )
86
+ return selector (self , func , get_column_names )
87
87
88
88
def datetime (
89
89
self : Self ,
Original file line number Diff line number Diff line change 24
24
from narwhals ._expression_parsing import combine_alias_output_names
25
25
from narwhals ._expression_parsing import combine_evaluate_output_names
26
26
from narwhals .typing import CompliantNamespace
27
- from narwhals .utils import get_columns
27
+ from narwhals .utils import get_column_names
28
28
from narwhals .utils import is_compliant_expr
29
29
30
30
if TYPE_CHECKING :
@@ -58,7 +58,7 @@ def func(df: DaskLazyFrame) -> list[dx.Series]:
58
58
func ,
59
59
depth = 0 ,
60
60
function_name = "all" ,
61
- evaluate_output_names = get_columns ,
61
+ evaluate_output_names = get_column_names ,
62
62
alias_output_names = None ,
63
63
backend_version = self ._backend_version ,
64
64
version = self ._version ,
Original file line number Diff line number Diff line change 10
10
from narwhals ._dask .expr import DaskExpr
11
11
from narwhals .utils import _parse_time_unit_and_time_zone
12
12
from narwhals .utils import dtype_matches_time_unit_and_time_zone
13
- from narwhals .utils import get_columns
13
+ from narwhals .utils import get_column_names
14
14
from narwhals .utils import import_dtypes_module
15
15
16
16
if TYPE_CHECKING :
@@ -96,7 +96,7 @@ def all(self: Self) -> DaskSelector:
96
96
def func (df : DaskLazyFrame ) -> list [dx .Series ]:
97
97
return [df ._native_frame [col ] for col in df .columns ]
98
98
99
- return selector (self , func , get_columns )
99
+ return selector (self , func , get_column_names )
100
100
101
101
def datetime (
102
102
self : Self ,
Original file line number Diff line number Diff line change 24
24
from narwhals ._expression_parsing import combine_alias_output_names
25
25
from narwhals ._expression_parsing import combine_evaluate_output_names
26
26
from narwhals .typing import CompliantNamespace
27
- from narwhals .utils import get_columns
27
+ from narwhals .utils import get_column_names
28
28
29
29
if TYPE_CHECKING :
30
30
import duckdb
@@ -53,7 +53,7 @@ def _all(df: DuckDBLazyFrame) -> list[duckdb.Expression]:
53
53
return DuckDBExpr (
54
54
call = _all ,
55
55
function_name = "all" ,
56
- evaluate_output_names = get_columns ,
56
+ evaluate_output_names = get_column_names ,
57
57
alias_output_names = None ,
58
58
backend_version = self ._backend_version ,
59
59
version = self ._version ,
Original file line number Diff line number Diff line change 12
12
from narwhals ._duckdb .expr import DuckDBExpr
13
13
from narwhals .utils import _parse_time_unit_and_time_zone
14
14
from narwhals .utils import dtype_matches_time_unit_and_time_zone
15
- from narwhals .utils import get_columns
15
+ from narwhals .utils import get_column_names
16
16
from narwhals .utils import import_dtypes_module
17
17
18
18
if TYPE_CHECKING :
@@ -89,7 +89,7 @@ def all(self: Self) -> DuckDBSelector:
89
89
def func (df : DuckDBLazyFrame ) -> list [duckdb .Expression ]:
90
90
return [ColumnExpression (col ) for col in df .columns ]
91
91
92
- return selector (self , func , get_columns )
92
+ return selector (self , func , get_column_names )
93
93
94
94
def datetime (
95
95
self : Self ,
Original file line number Diff line number Diff line change 22
22
from narwhals ._pandas_like .utils import horizontal_concat
23
23
from narwhals ._pandas_like .utils import vertical_concat
24
24
from narwhals .typing import CompliantNamespace
25
- from narwhals .utils import get_columns
25
+ from narwhals .utils import get_column_names
26
26
from narwhals .utils import import_dtypes_module
27
27
from narwhals .utils import is_compliant_expr
28
28
@@ -135,7 +135,7 @@ def all(self: Self) -> PandasLikeExpr:
135
135
],
136
136
depth = 0 ,
137
137
function_name = "all" ,
138
- evaluate_output_names = get_columns ,
138
+ evaluate_output_names = get_column_names ,
139
139
alias_output_names = None ,
140
140
implementation = self ._implementation ,
141
141
backend_version = self ._backend_version ,
Original file line number Diff line number Diff line change 10
10
from narwhals ._pandas_like .expr import PandasLikeExpr
11
11
from narwhals .utils import _parse_time_unit_and_time_zone
12
12
from narwhals .utils import dtype_matches_time_unit_and_time_zone
13
- from narwhals .utils import get_columns
13
+ from narwhals .utils import get_column_names
14
14
from narwhals .utils import import_dtypes_module
15
15
16
16
if TYPE_CHECKING :
@@ -84,7 +84,7 @@ def all(self: Self) -> PandasSelector:
84
84
def func (df : PandasLikeDataFrame ) -> list [PandasLikeSeries ]:
85
85
return [df [col ] for col in df .columns ]
86
86
87
- return selector (self , func , get_columns )
87
+ return selector (self , func , get_column_names )
88
88
89
89
def datetime (
90
90
self : Self ,
Original file line number Diff line number Diff line change 17
17
from narwhals ._spark_like .utils import maybe_evaluate_expr
18
18
from narwhals ._spark_like .utils import narwhals_to_native_dtype
19
19
from narwhals .typing import CompliantNamespace
20
- from narwhals .utils import get_columns
20
+ from narwhals .utils import get_column_names
21
21
22
22
if TYPE_CHECKING :
23
23
from pyspark .sql import Column
@@ -52,7 +52,7 @@ def _all(df: SparkLikeLazyFrame) -> list[Column]:
52
52
return SparkLikeExpr (
53
53
call = _all ,
54
54
function_name = "all" ,
55
- evaluate_output_names = get_columns ,
55
+ evaluate_output_names = get_column_names ,
56
56
alias_output_names = None ,
57
57
backend_version = self ._backend_version ,
58
58
version = self ._version ,
Original file line number Diff line number Diff line change 10
10
from narwhals ._spark_like .expr import SparkLikeExpr
11
11
from narwhals .utils import _parse_time_unit_and_time_zone
12
12
from narwhals .utils import dtype_matches_time_unit_and_time_zone
13
- from narwhals .utils import get_columns
13
+ from narwhals .utils import get_column_names
14
14
from narwhals .utils import import_dtypes_module
15
15
16
16
if TYPE_CHECKING :
@@ -84,7 +84,7 @@ def all(self: Self) -> SparkLikeSelector:
84
84
def func (df : SparkLikeLazyFrame ) -> list [Column ]:
85
85
return [df ._F .col (col ) for col in df .columns ]
86
86
87
- return selector (self , func , get_columns )
87
+ return selector (self , func , get_column_names )
88
88
89
89
def datetime (
90
90
self : Self ,
Original file line number Diff line number Diff line change @@ -1305,7 +1305,7 @@ def dtype_matches_time_unit_and_time_zone(
1305
1305
)
1306
1306
1307
1307
1308
- def get_columns (df : NativeFrame ) -> Sequence [str ]:
1308
+ def get_column_names (df : NativeFrame ) -> Sequence [str ]:
1309
1309
return df .columns
1310
1310
1311
1311
You can’t perform that action at this time.
0 commit comments