和顺 / 衡律 返回所属 Agent
8.3

利润核算与三表勾稽

原能力

实现规定的财务勾稽和利润核算,逐项报告差异,不用调平数掩盖问题。(合同附件 R7 8.3)

首选项目

EdgarTools(MIT)。 EdgarTools

匹配范围

按表项和期间读取,跨列规则支持核差。

源码

EdgarTools · def income_statement(

edgar/financials.py · 249–262 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def income_statement(self, *, view: ViewType = None):
        """
        Get the income statement.

        Args:
            view: StatementView controlling dimensional data display.
                  STANDARD: Face presentation matching SEC Viewer (display default)
                  DETAILED: All dimensional data included (to_dataframe default)
                  SUMMARY: Non-dimensional totals only

        Returns:
            A Statement object for the income statement, or None if not available
        """
        if self.xb is None:

EdgarTools · def cash_flow_statement(

edgar/financials.py · 266–279 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def cash_flow_statement(self, *, view: ViewType = None):
        """
        Get the cash flow statement.

        Args:
            view: StatementView controlling dimensional data display.
                  STANDARD: Face presentation matching SEC Viewer (display default)
                  DETAILED: All dimensional data included (to_dataframe default)
                  SUMMARY: Non-dimensional totals only

        Returns:
            A Statement object for the cash flow statement, or None if not available
        """
        if self.xb is None:

Pandera · class Check(

pandera/api/checks.py · 18–31 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class Check(BaseCheck):
    """Check a data object for certain properties."""

    def __init__(
        self,
        check_fn: Callable,
        groups: Union[str, list[Hashable]] | None = None,
        groupby: Union[str, list[str], Callable] | None = None,
        ignore_na: bool = True,
        element_wise: bool = False,
        native: bool = True,
        name: str | None = None,
        error: str | None = None,
        raise_warning: bool = False,

实现与验收要点

原规定三表勾稽、利润核算、差异与无调平数规则。