dataframely.functional module¶
- dataframely.functional.concat_collection_members(collections: Sequence[C], /) dict[str, LazyFrame][source]¶
Concatenate the members of collections with the same type.
- Args:
- collections: The collections whose members to concatenate. Optional members
are concatenated only from the collections that provide them.
- Returns:
A mapping from member names to a lazy concatenation of data frames. All keys are guaranteed to be valid members of the collection.
- dataframely.functional.filter_relationship_one_to_at_least_one(lhs: LazyFrame[S] | LazyFrame, rhs: LazyFrame[T] | LazyFrame, /, on: str | list[str]) LazyFrame[source]¶
Express a 1:{1,N} mapping between data frames for a collection filter.
- Args:
lhs: The data frame with exactly one occurrence for a set of key columns. rhs: The data frame with at least one occurrence for a set of key columns. on: The columns to join the data frames on. If not provided, the join columns
are inferred from the joint primary keys of the provided data frames.
- dataframely.functional.filter_relationship_one_to_one(lhs: LazyFrame[S] | LazyFrame, rhs: LazyFrame[T] | LazyFrame, /, on: str | list[str]) LazyFrame[source]¶
Express a 1:1 mapping between data frames for a collection filter.
- Args:
lhs: The first data frame in the 1:1 mapping. rhs: The second data frame in the 1:1 mapping. on: The columns to join the data frames on. If not provided, the join columns
are inferred from the mutual primary keys of the provided data frames.