Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add list[str] overload to rename_columns #119

Merged
merged 1 commit into from
Oct 19, 2024
Merged
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
6 changes: 6 additions & 0 deletions pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ class RecordBatch(_Tabular[Array]):
def get_total_buffer_size(self) -> int: ...
def __sizeof__(self) -> int: ...
def set_column(self, i: int, field_: str | Field, column: Array | list) -> Self: ...
@overload
def rename_columns(self, names: list[str]) -> Self: ...
@overload
def rename_columns(self, names: dict[str, str]) -> Self: ...
def serialize(self, memory_pool: MemoryPool | None = None) -> Buffer: ...
def slice(self, offset: int = 0, length: int | None = None) -> Self: ...
Expand Down Expand Up @@ -566,6 +569,9 @@ class Table(_Tabular[ChunkedArray]):
def get_total_buffer_size(self) -> int: ...
def __sizeof__(self) -> int: ...
def set_column(self, i: int, field_: str | Field, column: Array | list) -> Self: ...
@overload
def rename_columns(self, names: list[str]) -> Self: ...
@overload
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) -> TableGroupBy: ...
Expand Down