Footnotes¶
Footnote handling.
-
class
tabledataextractor.table.footnotes.
Footnote
(table, prefix, prefix_cell, text)[source]¶ Defines a footnote found in the provided table. Contains elements of a footnote. Will construct the footnote and find all associated elements.
Parameters: -
prefix
= None¶ Prefix string, e.g., “a)”.
-
prefix_cell
= None¶ Cell index of the prefix, e.g., (7,0).
-
reference_cells
= None¶ Cell indexes of the cells containing the footnote references within the table.
-
references
= None¶ Cell content of the cells contatining the footnote references within the table.
-
text
= None¶ Footnote text, e.g., “This is the text of a footnote”.
-
text_cell
= None¶ Cell of the footnote text, e.g., (7,1).
-
-
tabledataextractor.table.footnotes.
find_footnotes
(table_object)[source]¶ Finds a footnote and yields a
Footnote
object with all the appropriate properties. A footnote is defined with:FNprefix = \*, #, ., o, †; possibly followed by "." or ")"
A search is performed only below the data region.
Parameters: table_object (Table) – Input Table object