finstmt.findata package

Submodules

finstmt.findata.period_data module

class finstmt.findata.period_data.PeriodFinancialData(data_dict, config_manager, unextracted_names, prior_statement=None)[source]

Bases: object

Base class for financial statement data. Should not be used directly.

__init__(data_dict, config_manager, unextracted_names, prior_statement=None)[source]
config_manager: DataConfigManager
classmethod from_series(series, config_manager, prior_statement=None)[source]
maximum_display_verbosity = 1
prior_statement: Optional[PeriodFinancialData]
statement_items: Dict[str, StatementItem]
to_series()[source]
Return type:

Series

unextracted_names: List[str]

finstmt.findata.statement_item module

class finstmt.findata.statement_item.StatementItem(item_config, value)[source]

Bases: object

__init__(item_config, value)
get_value(fin_data)[source]
Return type:

float64

item_config: ItemConfig
value: Optional[float]

finstmt.findata.statementsbase module

class finstmt.findata.statementsbase.FinStatementsBase(*args, **kwargs)[source]

Bases: object

__init__(*args, **kwargs)[source]
property dates: List[Timestamp]
property freq: str
classmethod from_df(df, items_config_list=None, disp_unextracted=True)[source]

DataFrame must have columns as dates and index as names of financial statement items

item_is_empty(key)[source]
Return type:

bool

items_config_list: List[ItemConfig]
statement_name: str = 'Base'
statements: Dict[Timestamp, PeriodFinancialData]
to_df()[source]
Return type:

DataFrame

finstmt.findata.statementsbase.combine_statement_dfs(df, df2, operation=<built-in function add>)[source]
Return type:

DataFrame