FIX: Pandas File mit Header und ohne Index schreiben

This commit is contained in:
2024-03-26 13:37:45 +01:00
parent c8ee75f80c
commit 9c87541a49
+1 -1
View File
@@ -867,7 +867,7 @@ class CadItem(DataModel):
df = pd.DataFrame.from_dict(data, orient='index') df = pd.DataFrame.from_dict(data, orient='index')
df = (df.T) df = (df.T)
df.to_excel(target_path, index=True) df.to_excel(target_path, header=True, index=False)
if not os.path.exists(target_path): if not os.path.exists(target_path):
raise FileExistsError("Pfad wurde nicht erzeugt", target_path) raise FileExistsError("Pfad wurde nicht erzeugt", target_path)
return infos return infos