Partilhar via


OrMatcher Class

A column matcher that checks if at least one of a list of matchers is met.

Inheritance
sempy.functions.matcher._matcher.SeriesMatcher
OrMatcher

Constructor

OrMatcher(*matchers: SeriesMatcher)

Parameters

Name Description
*matchers
Required
list[<xref:SeriesMatcher>]

The list of matchers to check.

Methods

matches

Check if the column has the expected name.

matches

Check if the column has the expected name.

matches(series: MSeries) -> bool

Parameters

Name Description
series
Required

The series the matcher is being tested against.

Returns

Type Description

True if the matcher is met.