MCPcopy
hub / github.com/pandas-dev/pandas / validate_limit_area

Function validate_limit_area

pandas/core/missing.py:293–304  ·  view source on GitHub ↗
(limit_area: str | None)

Source from the content-addressed store, hash-verified

291
292
293def validate_limit_area(limit_area: str | None) -> Literal["inside", "outside"] | None:
294 if limit_area is not None:
295 valid_limit_areas = ["inside", "outside"]
296 limit_area = limit_area.lower()
297 if limit_area not in valid_limit_areas:
298 raise ValueError(
299 f"Invalid limit_area: expecting one of {valid_limit_areas}, got "
300 f"{limit_area}."
301 )
302 # error: Incompatible return value type (got "Optional[str]", expected
303 # "Optional[Literal['inside', 'outside']]")
304 return limit_area # type: ignore[return-value]
305
306
307def infer_limit_direction(

Callers 1

interpolate_2d_inplaceFunction · 0.85

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected