Skip to content

Commit

Permalink
fix: RecordBatch missing from_arrays and from_pandas (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
zen-xu authored Oct 8, 2024
1 parent 516215b commit f56e455
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pyarrow-stubs/__lib_pxi/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,23 @@ class RecordBatch(_Tabular[Array]):
self, target_schema: Schema, safe: bool | None = None, options: CastOptions | None = None
) -> Self: ...
@classmethod
def from_arrays(
cls,
arrays: list[Array] | list[ChunkedArray],
names: list[str] | None = None,
schema: Schema | None = None,
metadata: Mapping | None = None,
) -> Self: ...
@classmethod
def from_pandas(
cls,
df: pd.DataFrame,
schema: Schema | None = None,
preserve_index: bool | None = None,
nthreads: int | None = None,
columns: list[str] | None = None,
) -> Self: ...
@classmethod
def from_struct_array(
cls, struct_array: StructArray | ChunkedArray[scalar.StructScalar]
) -> Self: ...
Expand Down

0 comments on commit f56e455

Please sign in to comment.