Validation#

Collection.validate(data, /, *[, cast, eager])

Validate that a set of data frames satisfy the collection's invariants.

Collection.filter(data, /, *[, cast, eager])

Filter the members data frame by their schemas and the collection's filters.

Collection.is_valid(data, /, *[, cast])

Utility method to check whether validate() raises an exception.

Collection.cast(data, /)

Initialize a collection by casting all members into their correct schemas.

filter()

Mark a function as filters for rows in the members of a collection.

require_relationship_one_to_one(lhs, rhs, /, ...)

Express a 1:1 mapping between data frames for a collection filter.

require_relationship_one_to_at_least_one(...)

Express a 1:{1,N} mapping between data frames for a collection filter.