daft.DataFrame.concat

daft.DataFrame.concat#

DataFrame.concat(other: DataFrame) DataFrame[source]#

Concatenates two DataFrames together in a “vertical” concatenation. The resulting DataFrame has number of rows equal to the sum of the number of rows of the input DataFrames.

Note

DataFrames being concatenated must have exactly the same schema. You may wish to use the df.select() and expr.cast() methods to ensure schema compatibility before concatenation.

Parameters:

other (DataFrame) – other DataFrame to concatenate

Returns:

DataFrame with rows from self on top and rows from other at the bottom.

Return type:

DataFrame