Skip to content
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
21 changes: 21 additions & 0 deletions spec/API_specification/dataframe_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@
conforming implementation adheres.
"""

def concat(dataframes: Sequence[DataFrame]) -> DataFrame:
"""
Concatenate DataFrames vertically.

To concatenate horizontally, please use ``insert``.

Parameters
----------
dataframes : Sequence[DataFrame]
DataFrames to concatenate.
Column names, ordering, and dtypes must match.

Notes
-----
The order in which the input DataFrames appear in
the output is preserved (so long as the DataFrame implementation supports row
ordering).
"""
...

def column_from_sequence(sequence: Sequence[object], *, dtype: dtype) -> Column:
"""
Construct Column from sequence of elements.
Expand Down Expand Up @@ -52,3 +72,4 @@ def dataframe_from_dict(data: Mapping[str, Column]) -> DataFrame:
-------
DataFrame
"""
...