Filter#

class scikitplot.corpus.Filter[source]#

Base class for filter expressions.

Notes

Developer. Subclasses implement matches and operators. Composition uses the explicit And / Or / Not nodes rather than operator overloading: & and | read as bitwise operations and their precedence relative to comparisons is a classic source of silently wrong predicates.

describe()[source]#

Return a readable rendering of the expression.

Return type:

str

matches(document)[source]#

Whether document satisfies this expression.

Parameters:

document (Any)

Return type:

bool

operators()[source]#

Names of every operator appearing in this expression.

Return type:

set[str]