mirror of
https://github.com/koodiklinikka/palkkakysely.git
synced 2026-03-02 19:59:26 +00:00
Allow parametrizing paths
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user