Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Formula
#6
(Apr-17-2019, 04:03 AM)Skaperen Wrote: another could output or return HTML code

tabulate has this feature, from their help:

Quote:"html" produces HTML markup:

>>> print(tabulate([["strings", "numbers"], ["spam", 41.9999], ["eggs", "451.0"]],
... headers="firstrow", tablefmt="html"))
<table>
<thead>
<tr><th>strings </th><th style="text-align: right;"> numbers</th></tr>
</thead>
<tbody>
<tr><td>spam </td><td style="text-align: right;"> 41.9999</td></tr>
<tr><td>eggs </td><td style="text-align: right;"> 451 </td></tr>
</tbody>
</table>
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Python Formula - by prophet11 - Apr-16-2019, 09:19 PM
RE: Python Formula - by Larz60+ - Apr-17-2019, 01:02 AM
RE: Python Formula - by prophet11 - Apr-17-2019, 01:29 AM
RE: Python Formula - by Skaperen - Apr-17-2019, 04:03 AM
RE: Python Formula - by perfringo - Apr-17-2019, 07:40 PM
RE: Python Formula - by prophet11 - Apr-17-2019, 05:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python “Formula” Package: How do I parse Excel formula with a range of cells? JaneTan 1 3,615 Jul-12-2021, 11:09 AM
Last Post: jefsummers
  How do I read in a Formula in Excel and convert it to do the computation in Python? JaneTan 2 3,722 Jul-07-2021, 02:06 PM
Last Post: Marbelous
  Perfect Number formula in Python Question an Mersenne Numbers Pleiades 5 7,463 May-16-2018, 04:56 PM
Last Post: Pleiades

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020