(
df: pd.DataFrame, proc_l: List[processor_module.Processor], with_fit: bool, check_for_infer: bool
)
| 529 | |
| 530 | @staticmethod |
| 531 | def _run_proc_l( |
| 532 | df: pd.DataFrame, proc_l: List[processor_module.Processor], with_fit: bool, check_for_infer: bool |
| 533 | ) -> pd.DataFrame: |
| 534 | for proc in proc_l: |
| 535 | if check_for_infer and not proc.is_for_infer(): |
| 536 | raise TypeError("Only processors usable for inference can be used in `infer_processors` ") |
| 537 | with TimeInspector.logt(f"{proc.__class__.__name__}"): |
| 538 | if with_fit: |
| 539 | proc.fit(df) |
| 540 | df = proc(df) |
| 541 | return df |
| 542 | |
| 543 | @staticmethod |
| 544 | def _is_proc_readonly(proc_l: List[processor_module.Processor]): |
no test coverage detected