Skip to main content

concat_dataframes

Function concat_dataframes 

Source
pub fn concat_dataframes(frames: &[&DataFrame]) -> Result<DataFrame, FrameError>
Expand description

Concatenate DataFrames along axis 0 (row-wise).

Matches pd.concat([df1, df2, ...], axis=0) semantics:

  • Output columns are the union of input columns (join='outer').
  • Index labels are concatenated in order (duplicates preserved).
  • A cell INVENTED for a column absent from one frame is NaN, and an all-valid int64 column widens to float64; a column that already carried a missing value is nullable and keeps its dtype with a Null gap. See column_with_invented_gaps (br-frankenpandas-nywa8).
  • Empty input is rejected with No objects to concatenate.