pycognaize.document.tag.html_tag.HTMLCell

class HTMLCell(row_index, col_index, col_span, row_span, html_id, xpath, raw_value, is_bold, left_indentation)[source]

Bases: object

Represents cell tag for XBRL tables

Parameters:
  • row_index (int)

  • col_index (int)

  • col_span (int)

  • row_span (int)

  • html_id (Union[str, List[str]])

  • xpath (str)

  • raw_value (str)

  • is_bold (False)

  • left_indentation (None)

Methods

construct_from_raw

Build HTMLTAG from pycognaize raw data

to_dict

Converts cell to dict

Attributes

col_index

col_span

html_id

is_bold

left_indentation

raw_value

row_index

row_span

xpath

classmethod construct_from_raw(raw)[source]

Build HTMLTAG from pycognaize raw data

Parameters:

raw (dict) – pycognaize field’s tag info

Return type:

HTMLCell

Returns:

to_dict()[source]

Converts cell to dict

Return type:

dict