realtabformer.rtf_validators#

Module Contents#

Classes#

class realtabformer.rtf_validators.ValidatorBase[source]#
abstract validate(*args: Any, **kwargs: Any) bool[source]#
class realtabformer.rtf_validators.RangeValidator(min_val: float | int | numpy.number, max_val: float | int | numpy.number)[source]#

Bases: ValidatorBase

validate(val: float | int | numpy.number, *args: Any, **kwargs: Any) bool[source]#
class realtabformer.rtf_validators.GeoValidator(geo_bound: shapely.geometry.Polygon | shapely.geometry.MultiPolygon)[source]#

Bases: ValidatorBase

validate(lon: float, lat: float) bool[source]#
class realtabformer.rtf_validators.ObservationValidator(validators: Dict[str, Tuple[ValidatorBase, Tuple[str]]] | None = None)[source]#

Bases: ValidatorBase

validate(series: pandas.Series) bool[source]#
validate_df(df: pandas.DataFrame) pandas.Series[source]#
add_validator(name, validator, cols) None[source]#
remove_validator(name) Tuple[source]#