Skip to content

Commit

Permalink
a table group_by was returing Self but should return TableGroupBy (#104)
Browse files Browse the repository at this point in the history
group_by_returns_TableGroupBy
  • Loading branch information
deanm0000 authored Oct 8, 2024
1 parent cba5a5d commit ab97176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class Table(_Tabular[ChunkedArray]):
def set_column(self, i: int, field_: str | Field, column: Array | list) -> Self: ...
def rename_columns(self, names: dict[str, str]) -> Self: ...
def drop(self, columns: str | list[str]) -> Self: ...
def group_by(self, keys: str | list[str], use_threads: bool = True) -> Self: ...
def group_by(self, keys: str | list[str], use_threads: bool = True) -> TableGroupBy: ...
def join(
self,
right_table: Self,
Expand Down Expand Up @@ -603,6 +603,9 @@ class TableGroupBy:
def aggregate(
self, aggregations: list[tuple[str, str]] | list[tuple[str, str, FunctionOptions]]
) -> Table: ...
def _table(self) -> Table: ...
@property
def _use_threads(self) -> bool: ...

__all__ = [
"ChunkedArray",
Expand Down

0 comments on commit ab97176

Please sign in to comment.