共用方式為


NameMatcher Class

A column matcher that checks the name of the column matches.

Inheritance
sempy.functions.matcher._matcher.SeriesMatcher
NameMatcher

Constructor

NameMatcher(name: str)

Parameters

Name Description
name
Required
str

The name of the column.

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.