Unions
Module with union transformers.
Unions
¶
Bases: object
Class containing union transformers.
Source code in mkdocs/lakehouse_engine/packages/transformers/unions.py
union(union_with, deduplication=True)
classmethod
¶
Union dataframes, resolving columns by position (not by name).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
union_with |
List[DataFrame]
|
list of dataframes to union. |
required |
deduplication |
bool
|
whether to perform deduplication of elements or not. |
True
|
Returns:
Type | Description |
---|---|
Callable
|
A function to be called in .transform() spark function. |
Source code in mkdocs/lakehouse_engine/packages/transformers/unions.py
union_by_name(union_with, deduplication=True, allow_missing_columns=True)
classmethod
¶
Union dataframes, resolving columns by name (not by position).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
union_with |
List[DataFrame]
|
list of dataframes to union. |
required |
deduplication |
bool
|
whether to perform deduplication of elements or not. |
True
|
allow_missing_columns |
bool
|
allow the union of DataFrames with different schemas. |
True
|
Returns:
Type | Description |
---|---|
Callable
|
A function to be called in .transform() spark function. |