Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes by create-pull-request action (#74)
# Automatic stub gen Changes between new versions and last: # Changes from 0.20.22 to 0.20.23 ## expr ```diff --- 0.20.22 +++ 0.20.23 @@ -1,4 +1,4 @@ -#: version 0.20.22 +#: version 0.20.23 import P import np as np import pl @@ -171,7 +171,9 @@ def arg_sort(self) -> Self: ... def arg_max(self) -> Self: ... def arg_min(self) -> Self: ... - def search_sorted(self, element: IntoExpr, side: SearchSortedSide = ...) -> Self: ... + def search_sorted( + self, element: IntoExpr | np.ndarray[Any, Any], side: SearchSortedSide = ... + ) -> Self: ... def sort_by(self, by: IntoExpr | Iterable[IntoExpr], *more_by: IntoExpr) -> Self: ... def gather(self, indices: int | list[int] | Expr | Series | np.ndarray[Any, Any]) -> Self: ... def get(self, index: int | Expr) -> Self: ... ``` ## series ```diff --- 0.20.22 +++ 0.20.23 @@ -1,4 +1,4 @@ -#: version 0.20.22 +#: version 0.20.23 import np as np import pa as pa import pd as pd @@ -257,9 +257,7 @@ def arg_min(self) -> int | None: ... def arg_max(self) -> int | None: ... def search_sorted( - self, - element: int | float | Series | np.ndarray[Any, Any] | list[int] | list[float], - side: SearchSortedSide = ..., + self, element: IntoExpr | np.ndarray[Any, Any], side: SearchSortedSide = ... ) -> int | Series: ... def unique(self) -> Series: ... def gather(self, indices: int | list[int] | Expr | Series | np.ndarray[Any, Any]) -> Series: ... ``` ## lazyframe ```diff --- 0.20.22 +++ 0.20.23 @@ -1,4 +1,4 @@ -#: version 0.20.22 +#: version 0.20.23 import P import np import pa @@ -65,6 +65,7 @@ is_polars_dtype as is_polars_dtype, py_type_to_dtype as py_type_to_dtype, ) +from polars.dependencies import import_optional as import_optional from polars.io.csv._utils import _check_arg_is_1byte as _check_arg_is_1byte from polars.lazyframe.group_by import LazyGroupBy as LazyGroupBy from polars.lazyframe.in_process import InProcessQuery as InProcessQuery @@ -124,6 +125,7 @@ def show_graph(self) -> str | None: ... def inspect(self, fmt: str = ...) -> Self: ... def sort(self, by: IntoExpr | Iterable[IntoExpr], *more_by: IntoExpr) -> Self: ... + def sql(self, query: str) -> Self: ... def top_k(self, k: int) -> Self: ... def bottom_k(self, k: int) -> Self: ... def profile(self) -> tuple[DataFrame, DataFrame]: ... ``` ## dataframe ```diff --- 0.20.22 +++ 0.20.23 @@ -1,4 +1,4 @@ -#: version 0.20.22 +#: version 0.20.23 import P import deltalake import deltalake.table @@ -222,6 +222,7 @@ def get_column_index(self, name: str) -> int: ... def replace_column(self, index: int, column: Series) -> Self: ... def sort(self, by: IntoExpr | Iterable[IntoExpr], *more_by: IntoExpr) -> DataFrame: ... + def sql(self, query: str) -> Self: ... def top_k(self, k: int) -> DataFrame: ... def bottom_k(self, k: int) -> DataFrame: ... def equals(self, other: DataFrame) -> bool: ... ``` Co-authored-by: StefanBRas <28559054+StefanBRas@users.noreply.github.com>
- Loading branch information