Skip to content

Commit

Permalink
Support ChunkedArray in add/append methods in Table (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk authored Oct 24, 2024
1 parent b6fb2fd commit 717e64b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class _Tabular(_PandasConvertible[pd.DataFrame], Generic[_ColumnT]):
@classmethod
def from_pydict(
cls,
mapping: Mapping[str, Array | list],
mapping: Mapping[str, ChunkedArray | Array | list | np.ndarray],
schema: Schema | None = None,
metadata: Mapping | None = None,
) -> Self: ...
Expand Down Expand Up @@ -444,8 +444,10 @@ class _Tabular(_PandasConvertible[pd.DataFrame], Generic[_ColumnT]):
def to_string(self, *, show_metadata: bool = False, preview_cols: int = 0) -> str: ...
def remove_column(self, i: int) -> Self: ...
def drop_columns(self, columns: str | list[str]) -> Self: ...
def add_column(self, i: int, field_: str | Field, column: Array | list) -> Self: ...
def append_column(self, field_: str | Field, column: Array | list) -> Self: ...
def add_column(
self, i: int, field_: str | Field, column: ChunkedArray | Array | list
) -> Self: ...
def append_column(self, field_: str | Field, column: ChunkedArray | Array | list) -> Self: ...

class RecordBatch(_Tabular[Array]):
def validate(self, *, full: bool = False) -> None: ...
Expand Down

0 comments on commit 717e64b

Please sign in to comment.