Table detection and extraction from ruling lines, text alignments, or
caller-supplied explicit lines. Public coordinates use
[x0 top x1 bottom] in a top-left origin.
Table detection and extraction from ruling lines, text alignments, or caller-supplied explicit lines. Public coordinates use `[x0 top x1 bottom]` in a top-left origin.
(extract-table doc)(extract-table doc opts)Extract the first detected table, ordered top-to-bottom then left-to-right,
or nil when no table is found. This preserves the singular API while
extract-tables returns all independent table regions. Options are the same
as extract-tables.
Extract the first detected table, ordered top-to-bottom then left-to-right, or nil when no table is found. This preserves the singular API while `extract-tables` returns all independent table regions. Options are the same as `extract-tables`.
(extract-tables doc)(extract-tables doc opts)Detect and extract every independent table on a page, ordered top-to-bottom then left-to-right. Unlike versions through 0.1.2, this returns one table per connected cell region instead of at most one page-wide bounding grid.
Options include :vertical-strategy and :horizontal-strategy, each one of
:lines, :lines-strict, :text, or :explicit; corresponding
:explicit-vertical-lines / :explicit-horizontal-lines; and
:snap-tolerance, :join-tolerance, :edge-min-length,
:intersection-tolerance, :min-words-vertical, and
:min-words-horizontal. The legacy :strategy option sets both axes.
Detect and extract every independent table on a page, ordered top-to-bottom then left-to-right. Unlike versions through 0.1.2, this returns one table per connected cell region instead of at most one page-wide bounding grid. Options include `:vertical-strategy` and `:horizontal-strategy`, each one of `:lines`, `:lines-strict`, `:text`, or `:explicit`; corresponding `:explicit-vertical-lines` / `:explicit-horizontal-lines`; and `:snap-tolerance`, `:join-tolerance`, `:edge-min-length`, `:intersection-tolerance`, `:min-words-vertical`, and `:min-words-horizontal`. The legacy `:strategy` option sets both axes.
(find-table doc)(find-table doc opts)First Table map from find-tables, or nil.
First Table map from `find-tables`, or nil.
(find-tables doc)(find-tables doc opts)Find Table maps with :rows, :columns, :cells, :bbox, and a zero-arg
:extract function.
Find Table maps with `:rows`, `:columns`, `:cells`, `:bbox`, and a zero-arg `:extract` function.
(table->maps table)(table->maps table opts)Convert an extracted table map or raw rows into header-keyed row maps.
:header is :first, an explicit key vector, or false for integer keys;
:keywordize? munges header strings to keywords. Ragged rows are padded or
truncated. Dataframe input needs no adapter:
(tech.v3.dataset/->dataset (table->maps table)).
Convert an extracted table map or raw rows into header-keyed row maps. `:header` is `:first`, an explicit key vector, or false for integer keys; `:keywordize?` munges header strings to keywords. Ragged rows are padded or truncated. Dataframe input needs no adapter: `(tech.v3.dataset/->dataset (table->maps table))`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |