Created
September 16, 2018 20:37
-
-
Save marknagelberg/9018e3a1bb9ad9d6da1b8b31468e5364 to your computer and use it in GitHub Desktop.
Template for PDF Python Reports Blog Poset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head></head> | |
<body> | |
<h1>Interest Rate: {{ interest_rate * 100 }}%</h1> | |
<table> | |
<tr> | |
{% for column in df.columns %} | |
<th>{{ column }}</th> | |
{% endfor %} | |
</tr> | |
{% for idx, row in df.iterrows() %} | |
<tr> | |
{% for colname in df.columns %} | |
<td>${{ row[colname] | round(1) }}</td> | |
{% endfor %} | |
</tr> | |
{% endfor %} | |
</table> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment