Popular recipes tagged "table" but not "tkinter" and "string"http://code.activestate.com/recipes/tags/table-tkinter-string/2016-04-10T22:43:57-07:00ActiveState Code RecipesHow to parse a table in a PDF document (Python) 2016-04-10T22:43:57-07:00Jorj X. McKiehttp://code.activestate.com/recipes/users/4193772/http://code.activestate.com/recipes/580635-how-to-parse-a-table-in-a-pdf-document/ <p style="color: grey"> Python recipe 580635 by <a href="/recipes/users/4193772/">Jorj X. McKie</a> (<a href="/recipes/tags/cbz/">cbz</a>, <a href="/recipes/tags/epub/">epub</a>, <a href="/recipes/tags/fitz/">fitz</a>, <a href="/recipes/tags/mupdf/">mupdf</a>, <a href="/recipes/tags/openxps/">openxps</a>, <a href="/recipes/tags/parsing/">parsing</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/pymupdf/">pymupdf</a>, <a href="/recipes/tags/table/">table</a>, <a href="/recipes/tags/xps/">xps</a>). Revision 4. </p> <p>A Python function that converts a table contained in a page of a PDF (or OpenXPS, EPUB, CBZ, XPS) document to a matrix-like Python object (list of lists of strings).</p> Generate behave table (Python) 2015-05-19T07:16:06-07:00Nicolas Laurancehttp://code.activestate.com/recipes/users/4192224/http://code.activestate.com/recipes/579055-generate-behave-table/ <p style="color: grey"> Python recipe 579055 by <a href="/recipes/users/4192224/">Nicolas Laurance</a> (<a href="/recipes/tags/bdd/">bdd</a>, <a href="/recipes/tags/behave/">behave</a>, <a href="/recipes/tags/table/">table</a>). </p> <p>When writing BDD code with behave, you may want to include a set of examples for scenario outline, or provide a table for setting up initial conditions. This snippet ease the pain of formatting the table properly as text</p> Multiplication table (Python) 2011-04-21T09:12:26-07:00Boubakrhttp://code.activestate.com/recipes/users/4176416/http://code.activestate.com/recipes/577672-multiplication-table/ <p style="color: grey"> Python recipe 577672 by <a href="/recipes/users/4176416/">Boubakr</a> (<a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/multiplication/">multiplication</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/table/">table</a>). </p> <p>Multiplication table (Python)</p> Render tables for text interface (Python) 2010-04-20T18:02:51-07:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/577202-render-tables-for-text-interface/ <p style="color: grey"> Python recipe 577202 by <a href="/recipes/users/57155/">Denis Barmenkov</a> (<a href="/recipes/tags/format/">format</a>, <a href="/recipes/tags/table/">table</a>, <a href="/recipes/tags/text/">text</a>). Revision 2. </p> <p>Sometime pprint module is not enough for formatting data for console or log file output. This module provide function which fill the gap.</p> <p><strong>Sample function call:</strong></p> <pre class="prettyprint"><code>nums = [ '1', '2', '3', '4' ] speeds = [ '100', '10000', '1500', '12' ] desc = [ '', 'label 1', 'none', 'very long description' ] lines = format_table( [(nums, ALIGN_RIGHT|PADDING_ALL, 'NUM'), (speeds, ALIGN_RIGHT|PADDING_ALL, 'SPEED'), (desc, ALIGN_LEFT|PADDING_ALL, 'DESC')] ) </code></pre> <p><strong>Output:</strong></p> <pre class="prettyprint"><code>======================================= | NUM | SPEED | DESC | ======================================= | 1 | 100 | | | 2 | 10000 | label 1 | | 3 | 1500 | none | | 4 | 12 | very long description | ======================================= </code></pre>