Allow parametrizing paths

This commit is contained in:
Aarni Koskela
2022-08-31 15:12:46 +03:00
parent cdc6d9cc89
commit 538bc6083a
6 changed files with 19 additions and 8 deletions

View File

@@ -1,13 +1,14 @@
from pulkka.config import OUT_DIR
from pulkka.data_ingest import read_data
def main():
df = read_data()
df.to_html("out/data.html", index=False)
df.to_csv("out/data.csv", index=False)
df.to_excel("out/data.xlsx", index=False)
df.to_html(OUT_DIR / "data.html", index=False)
df.to_csv(OUT_DIR / "data.csv", index=False)
df.to_excel(OUT_DIR / "data.xlsx", index=False)
df.to_json(
"out/data.json",
OUT_DIR / "data.json",
orient="records",
date_format="iso",
force_ascii=False,