astromodule.table.concat_tables#
- concat_tables(tables: Sequence[Table | DataFrame | str | Path | BufferedIOBase | RawIOBase | TextIOBase], progress: bool = False, **kwargs) DataFrame [source]#
Concatenate tables into a single one. This function concatenate over the table rows and is usefull to concatenate tables with same columns, although there is no error in concatenating tables with non-existent columns in other. If a table does not have a certain column, the values will be filled with
NaN
values. This function does not attempt to apply any type of duplicate row removal.- Parameters:
- tables
Sequence
[TableLike
|PathOrFile
] A sequence of tables to be concatenated. This parameter accepts a table-like object (pandas dataframe, astropy table), a path to a file represented as a string or pathlib.Path object, or a file object (BinaryIO, StringIO, file-descriptor, etc).
- kwargs
Any
Arguments that will be passed to
read_table
function
- tables
- Returns:
pd.DataFrame
A dataframe with concatenated tables or a empty dataframe