|
@@ -1,7 +1,9 @@
|
|
|
import pandas as pd
|
|
|
import json
|
|
|
+import os
|
|
|
|
|
|
-df = pd.read_csv("metrics.csv", delimiter=";")
|
|
|
+directory = os.path.dirname(os.path.abspath(__file__))
|
|
|
+df = pd.read_csv(directory + "/metrics.csv", delimiter=";")
|
|
|
df = df.dropna(subset=["Metrik"]).reset_index(drop=True)
|
|
|
|
|
|
catLookUp = {
|
|
@@ -44,6 +46,6 @@ for i, row in df.iterrows():
|
|
|
"comments": comments
|
|
|
})
|
|
|
|
|
|
-with open("metrics.json", "w") as jsonFile:
|
|
|
+with open(directory + "/metrics.json", "w") as jsonFile:
|
|
|
json.dump({"metrics": metrics}, jsonFile, indent=2)
|
|
|
|