cudf.DataFrame.join#
- DataFrame.join(other, on=None, how='left', lsuffix='', rsuffix='', sort=False, validate: str | None = None)[source]#
Join columns with other DataFrame on index or on a key column.
- Parameters:
- otherDataFrame
- how{‘left’, ‘right’, ‘outer’, ‘inner’, ‘cross’}, default ‘left’
How to handle the operation of the two objects.
left: use calling frame’s index (or column if on is specified)
right: use other’s index.
outer: form union of calling frame’s index (or column if on is specified) with other’s index, and sort it lexicographically.
inner: form intersection of calling frame’s index (or column if on is specified) with other’s index, preserving the order of the calling’s one.
cross: creates the cartesian product from both frames, preserves the order of the left keys.
- lsuffix, rsuffixstr
The suffices to add to the left (lsuffix) and right (rsuffix) column names when avoiding conflicts.
- sortbool
Set to True to ensure sorted ordering.
- validatestr, optional
If specified, checks if join is of specified type.
“one_to_one” or “1:1”: check if join keys are unique in both left and right datasets.
“one_to_many” or “1:m”: check if join keys are unique in left dataset.
“many_to_one” or “m:1”: check if join keys are unique in right dataset.
“many_to_many” or “m:m”: allowed, but does not result in checks.
Currently not supported.
- Returns:
- joinedDataFrame
Pandas Compatibility Note
other must be a single DataFrame for now.
on is not supported yet due to lack of multi-index support.