Skip to content

Join(other, keys, mode=JoinMode.INNER, suffixes=None, key_types=KeyTypes.SAME_FAMILY, relation=Relation.MANY_TO_MANY) Source

Settings of a join of two Tables on the values of key columns, used by Table.join.

Each row of the joined Table meets each row of the other Table having the same keys. A missing key never matches, as in SQL. The rows of the joined Table come first, in their order, then the unmatched rows of the other Table. The columns are the keys, then the other columns of the joined Table, then those of the other Table.

Added in version 0.1.0

Parameters:

Raises:

Examples:

import numdaplot as ndp

accidents = ndp.Table.from_arrays({"id": ndp.Array.from_list([1, 2]), "dep": ndp.Array.from_list(["75", "69"])})
users = ndp.Table.from_arrays({"id": ndp.Array.from_list([1, 1]), "age": ndp.Array.from_list([34, 8])})
accidents.join(ndp.Join(other=users, keys=["id"]))
#      id  dep   age
#   INT64 TEXT INT64
# 0     1   75    34
# 1     1   75     8