Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions _duckdb-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class DuckDBPyRelation:
self, aggr_expr: Expression | str | list[Expression], group_expr: Expression | str = ""
) -> DuckDBPyRelation: ...
def any_value(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def apply(
self,
Expand All @@ -489,35 +489,35 @@ class DuckDBPyRelation:
) -> DuckDBPyRelation: ...
def arrow(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.RecordBatchReader: ...
def avg(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def bit_and(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def bit_or(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def bit_xor(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def bitstring_agg(
self,
column: str,
expression: str,
min: int | None = None,
max: int | None = None,
groups: str = "",
window_spec: str = "",
projected_columns: str = "",
) -> DuckDBPyRelation: ...
def bool_and(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def bool_or(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def close(self) -> None: ...
def count(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def create(self, table_name: str) -> None: ...
def create_view(self, view_name: str, replace: bool = True) -> DuckDBPyRelation: ...
Expand All @@ -531,7 +531,7 @@ class DuckDBPyRelation:
def execute(self) -> DuckDBPyRelation: ...
def explain(self, type: ExplainType = ExplainType.STANDARD) -> str: ...
def favg(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def fetch_arrow_reader(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.RecordBatchReader: ...
def fetch_arrow_table(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.Table: ...
Expand All @@ -545,14 +545,14 @@ class DuckDBPyRelation:
def fetchnumpy(self) -> dict[str, np.typing.NDArray[pytyping.Any] | pandas.Categorical]: ...
def fetchone(self) -> tuple[pytyping.Any, ...] | None: ...
def filter(self, filter_expr: Expression | str) -> DuckDBPyRelation: ...
def first(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def first_value(self, column: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def first(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def first_value(self, expression: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def fsum(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def geomean(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def geomean(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def histogram(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def insert(self, values: pytyping.List[object]) -> None: ...
def insert_into(self, table_name: str) -> None: ...
Expand All @@ -562,18 +562,18 @@ class DuckDBPyRelation:
) -> DuckDBPyRelation: ...
def lag(
self,
column: str,
expression: str,
window_spec: str,
offset: pytyping.SupportsInt = 1,
default_value: str = "NULL",
ignore_nulls: bool = False,
projected_columns: str = "",
) -> DuckDBPyRelation: ...
def last(self, column: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def last_value(self, column: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def last(self, expression: str, groups: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def last_value(self, expression: str, window_spec: str = "", projected_columns: str = "") -> DuckDBPyRelation: ...
def lead(
self,
column: str,
expression: str,
window_spec: str,
offset: pytyping.SupportsInt = 1,
default_value: str = "NULL",
Expand All @@ -582,32 +582,32 @@ class DuckDBPyRelation:
) -> DuckDBPyRelation: ...
def limit(self, n: pytyping.SupportsInt, offset: pytyping.SupportsInt = 0) -> DuckDBPyRelation: ...
def list(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def map(
self, map_function: Callable[..., pytyping.Any], *, schema: dict[str, sqltypes.DuckDBPyType] | None = None
) -> DuckDBPyRelation: ...
def max(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def mean(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def median(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def min(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def mode(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def n_tile(
self, window_spec: str, num_buckets: pytyping.SupportsInt, projected_columns: str = ""
) -> DuckDBPyRelation: ...
def nth_value(
self,
column: str,
expression: str,
window_spec: str,
offset: pytyping.SupportsInt,
ignore_nulls: bool = False,
Expand All @@ -626,28 +626,28 @@ class DuckDBPyRelation:
self, batch_size: pytyping.SupportsInt = 1000000, *, lazy: bool = False
) -> pytyping.Union[polars.DataFrame, polars.LazyFrame]: ...
def product(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def project(self, *args: str | Expression, groups: str = "") -> DuckDBPyRelation: ...
def quantile(
self,
column: str,
expression: str,
q: float | pytyping.List[float] = 0.5,
groups: str = "",
window_spec: str = "",
projected_columns: str = "",
) -> DuckDBPyRelation: ...
def quantile_cont(
self,
column: str,
expression: str,
q: float | pytyping.List[float] = 0.5,
groups: str = "",
window_spec: str = "",
projected_columns: str = "",
) -> DuckDBPyRelation: ...
def quantile_disc(
self,
column: str,
expression: str,
q: float | pytyping.List[float] = 0.5,
groups: str = "",
window_spec: str = "",
Expand All @@ -674,22 +674,22 @@ class DuckDBPyRelation:
def sort(self, *args: Expression) -> DuckDBPyRelation: ...
def sql_query(self) -> str: ...
def std(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def stddev(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def stddev_pop(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def stddev_samp(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def string_agg(
self, column: str, sep: str = ",", groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, sep: str = ",", groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def sum(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def tf(self) -> dict[str, tensorflow.Tensor]: ...
def to_arrow_table(self, batch_size: pytyping.SupportsInt = 1000000) -> pyarrow.lib.Table: ...
Expand Down Expand Up @@ -737,18 +737,18 @@ class DuckDBPyRelation:
def union(self, union_rel: DuckDBPyRelation) -> DuckDBPyRelation: ...
def unique(self, unique_aggr: str) -> DuckDBPyRelation: ...
def update(self, set: Expression | str, *, condition: Expression | str | None = None) -> None: ...
def value_counts(self, column: str, groups: str = "") -> DuckDBPyRelation: ...
def value_counts(self, expression: str, groups: str = "") -> DuckDBPyRelation: ...
def var(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def var_pop(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def var_samp(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def variance(
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
) -> DuckDBPyRelation: ...
def write_csv(
self,
Expand Down
Loading