参数来源与数值计算适用条件
原能力
逐项说明参数来源、单位和适用前提,缺少必要依据时保持未知或拒绝计算。(合同附件 R7 7.5)
首选项目
Pandera(MIT)。 Pandera
匹配范围
类型、范围及参数制品记录。
源码
Pandera · def validate(
pandera/api/pandas/container.py · 127–140 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def validate(
self,
check_obj: pd.DataFrame,
head: int | None = None,
tail: int | None = None,
sample: int | None = None,
random_state: int | None = None,
lazy: bool = False,
inplace: bool = False,
) -> pd.DataFrame:
"""Validate a DataFrame based on the schema specification.
:param pd.DataFrame check_obj: the dataframe to be validated.
:param head: validate the first n rows. Rows overlapping with `tail` or
实现与验收要点
实际参数来源、量纲、适用前提与拒绝计算语义。