Skip to content

add concat #137

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

Merged
merged 15 commits into from
May 15, 2023
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
"""
...