FIX: Pandas File mit Header und ohne Index schreiben
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user