edanalytics / earthmover

CLI tool for transforming collections of tabular source data into a variety of text-based data formats via YAML configuration and Jinja templates.
Apache License 2.0
19 stars 2 forks source link

Hotfix: Refactor Jinja Destination Headers and Footers #124

Closed jayckaiser closed 1 week ago

jayckaiser commented 1 week ago

Use dataframe column to generate a pseudo row to pass to header and footer Jinja renders on destination write.

This circumvents an IndexError when writing an empty dataframe with a Jinja-rendered header or footer.