join(with:on:type:)
Creates a new data table by merging two data tables by the given columns.
Declaration
func join(with: MLDataTable, on columnsNamed: String..., type: MLDataTable.JoinType = .inner) -> MLDataTableParameters
- with:
Another data table to merge with this data table.
- columnsNamed:
The name of the columns to perform the
joinoperation on. The method merges all rows with matching values in these columns.If you do not provide any column names, the method uses all the columns present in both tables.
- type:
The type of
joinoperation, which are equivalent to SQLjointypes.
Return Value
A new data table.