Skip to content

Commit 98ccb24

Browse files
committed
Rename column arg in relational API functions to exrpession
1 parent 78aee48 commit 98ccb24

2 files changed

Lines changed: 115 additions & 99 deletions

File tree

_duckdb-stubs/__init__.pyi

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class DuckDBPyRelation:
471471
self, aggr_expr: Expression | str | list[Expression], group_expr: Expression | str = ""
472472
) -> DuckDBPyRelation: ...
473473
def any_value(
474-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
474+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
475475
) -> DuckDBPyRelation: ...
476476
def apply(
477477
self,
@@ -489,35 +489,35 @@ class DuckDBPyRelation:
489489
) -> DuckDBPyRelation: ...
490490
def arrow(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.RecordBatchReader: ...
491491
def avg(
492-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
492+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
493493
) -> DuckDBPyRelation: ...
494494
def bit_and(
495-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
495+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
496496
) -> DuckDBPyRelation: ...
497497
def bit_or(
498-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
498+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
499499
) -> DuckDBPyRelation: ...
500500
def bit_xor(
501-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
501+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
502502
) -> DuckDBPyRelation: ...
503503
def bitstring_agg(
504504
self,
505-
column: str,
505+
expression: str,
506506
min: int | None = None,
507507
max: int | None = None,
508508
groups: str = "",
509509
window_spec: str = "",
510510
projected_columns: str = "",
511511
) -> DuckDBPyRelation: ...
512512
def bool_and(
513-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
513+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
514514
) -> DuckDBPyRelation: ...
515515
def bool_or(
516-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
516+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
517517
) -> DuckDBPyRelation: ...
518518
def close(self) -> None: ...
519519
def count(
520-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
520+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
521521
) -> DuckDBPyRelation: ...
522522
def create(self, table_name: str) -> None: ...
523523
def create_view(self, view_name: str, replace: bool = True) -> DuckDBPyRelation: ...
@@ -531,7 +531,7 @@ class DuckDBPyRelation:
531531
def execute(self) -> DuckDBPyRelation: ...
532532
def explain(self, type: ExplainType = ExplainType.STANDARD) -> str: ...
533533
def favg(
534-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
534+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
535535
) -> DuckDBPyRelation: ...
536536
def fetch_arrow_reader(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.RecordBatchReader: ...
537537
def fetch_arrow_table(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.Table: ...
@@ -545,14 +545,14 @@ class DuckDBPyRelation:
545545
def fetchnumpy(self) -> dict[str, np.typing.NDArray[pytyping.Any] | pandas.Categorical]: ...
546546
def fetchone(self) -> tuple[pytyping.Any, ...] | None: ...
547547
def filter(self, filter_expr: Expression | str) -> DuckDBPyRelation: ...
548-
def first(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
549-
def first_value(self, column: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
548+
def first(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
549+
def first_value(self, expression: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
550550
def fsum(
551-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
551+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
552552
) -> DuckDBPyRelation: ...
553-
def geomean(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
553+
def geomean(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
554554
def histogram(
555-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
555+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
556556
) -> DuckDBPyRelation: ...
557557
def insert(self, values: pytyping.List[object]) -> None: ...
558558
def insert_into(self, table_name: str) -> None: ...
@@ -562,18 +562,18 @@ class DuckDBPyRelation:
562562
) -> DuckDBPyRelation: ...
563563
def lag(
564564
self,
565-
column: str,
565+
expression: str,
566566
window_spec: str,
567567
offset: pytyping.SupportsInt = 1,
568568
default_value: str = "NULL",
569569
ignore_nulls: bool = False,
570570
projected_columns: str = "",
571571
) -> DuckDBPyRelation: ...
572-
def last(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
573-
def last_value(self, column: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
572+
def last(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
573+
def last_value(self, expression: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
574574
def lead(
575575
self,
576-
column: str,
576+
expression: str,
577577
window_spec: str,
578578
offset: pytyping.SupportsInt = 1,
579579
default_value: str = "NULL",
@@ -582,32 +582,32 @@ class DuckDBPyRelation:
582582
) -> DuckDBPyRelation: ...
583583
def limit(self, n: pytyping.SupportsInt, offset: pytyping.SupportsInt = 0) -> DuckDBPyRelation: ...
584584
def list(
585-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
585+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
586586
) -> DuckDBPyRelation: ...
587587
def map(
588588
self, map_function: Callable[..., pytyping.Any], *, schema: dict[str, sqltypes.DuckDBPyType] | None = None
589589
) -> DuckDBPyRelation: ...
590590
def max(
591-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
591+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
592592
) -> DuckDBPyRelation: ...
593593
def mean(
594-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
594+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
595595
) -> DuckDBPyRelation: ...
596596
def median(
597-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
597+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
598598
) -> DuckDBPyRelation: ...
599599
def min(
600-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
600+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
601601
) -> DuckDBPyRelation: ...
602602
def mode(
603-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
603+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
604604
) -> DuckDBPyRelation: ...
605605
def n_tile(
606606
self, window_spec: str, num_buckets: pytyping.SupportsInt, projected_columns: str = ""
607607
) -> DuckDBPyRelation: ...
608608
def nth_value(
609609
self,
610-
column: str,
610+
expression: str,
611611
window_spec: str,
612612
offset: pytyping.SupportsInt,
613613
ignore_nulls: bool = False,
@@ -626,28 +626,28 @@ class DuckDBPyRelation:
626626
self, batch_size: pytyping.SupportsInt = 1000000, *, lazy: bool = False
627627
) -> pytyping.Union[polars.DataFrame, polars.LazyFrame]: ...
628628
def product(
629-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
629+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
630630
) -> DuckDBPyRelation: ...
631631
def project(self, *args: str | Expression, groups: str = "") -> DuckDBPyRelation: ...
632632
def quantile(
633633
self,
634-
column: str,
634+
expression: str,
635635
q: float | pytyping.List[float] = 0.5,
636636
groups: str = "",
637637
window_spec: str = "",
638638
projected_columns: str = "",
639639
) -> DuckDBPyRelation: ...
640640
def quantile_cont(
641641
self,
642-
column: str,
642+
expression: str,
643643
q: float | pytyping.List[float] = 0.5,
644644
groups: str = "",
645645
window_spec: str = "",
646646
projected_columns: str = "",
647647
) -> DuckDBPyRelation: ...
648648
def quantile_disc(
649649
self,
650-
column: str,
650+
expression: str,
651651
q: float | pytyping.List[float] = 0.5,
652652
groups: str = "",
653653
window_spec: str = "",
@@ -674,22 +674,22 @@ class DuckDBPyRelation:
674674
def sort(self, *args: Expression) -> DuckDBPyRelation: ...
675675
def sql_query(self) -> str: ...
676676
def std(
677-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
677+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
678678
) -> DuckDBPyRelation: ...
679679
def stddev(
680-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
680+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
681681
) -> DuckDBPyRelation: ...
682682
def stddev_pop(
683-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
683+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
684684
) -> DuckDBPyRelation: ...
685685
def stddev_samp(
686-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
686+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
687687
) -> DuckDBPyRelation: ...
688688
def string_agg(
689-
self, column: str, sep: str = ",", groups: str = "", window_spec: str = "", projected_columns: str = ""
689+
self, expression: str, sep: str = ",", groups: str = "", window_spec: str = "", projected_columns: str = ""
690690
) -> DuckDBPyRelation: ...
691691
def sum(
692-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
692+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
693693
) -> DuckDBPyRelation: ...
694694
def tf(self) -> dict[str, tensorflow.Tensor]: ...
695695
def to_arrow_table(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.Table: ...
@@ -737,18 +737,18 @@ class DuckDBPyRelation:
737737
def union(self, union_rel: DuckDBPyRelation) -> DuckDBPyRelation: ...
738738
def unique(self, unique_aggr: str) -> DuckDBPyRelation: ...
739739
def update(self, set: Expression | str, *, condition: Expression | str | None = None) -> None: ...
740-
def value_counts(self, column: str, groups: str = "") -> DuckDBPyRelation: ...
740+
def value_counts(self, expression: str, groups: str = "") -> DuckDBPyRelation: ...
741741
def var(
742-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
742+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
743743
) -> DuckDBPyRelation: ...
744744
def var_pop(
745-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
745+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
746746
) -> DuckDBPyRelation: ...
747747
def var_samp(
748-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
748+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
749749
) -> DuckDBPyRelation: ...
750750
def variance(
751-
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
751+
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
752752
) -> DuckDBPyRelation: ...
753753
def write_csv(
754754
self,

0 commit comments

Comments
 (0)