Filename teils angepasst
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
from PyQt5.QtWidgets import QApplication, QDialog, QFileDialog
|
from PyQt5.QtWidgets import QApplication, QDialog, QFileDialog
|
||||||
from PyQt5.uic import loadUi
|
from PyQt5.uic import loadUi
|
||||||
import sys
|
import sys, os, re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from icecream import ic
|
from icecream import ic
|
||||||
import re
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
@@ -416,7 +415,11 @@ class MainUI(QDialog): # erbt von QDialog
|
|||||||
"Save File", "", "CSV(*.csv);;CSV Files(*.csv)",
|
"Save File", "", "CSV(*.csv);;CSV Files(*.csv)",
|
||||||
options=options)
|
options=options)
|
||||||
|
|
||||||
self.dfb_gg.to_csv(self.savefilename+"_GG", index=None, header=True, encoding='utf-8')
|
|
||||||
|
print(os.path.splitext(os.path.basename(self.savefilename))[0])
|
||||||
|
print(os.path.splitext(os.path.basename(self.savefilename))[1])
|
||||||
|
|
||||||
|
self.dfb_gg.to_csv(os.path.splitext(os.path.basename(self.savefilename))[0]+"_GG"+os.path.splitext(os.path.basename(self.savefilename))[1], index=None, header=True, encoding='utf-8')
|
||||||
self.dfb_erw.to_csv(self.savefilename+"_ERW", index=None, header=True, encoding='utf-8')
|
self.dfb_erw.to_csv(self.savefilename+"_ERW", index=None, header=True, encoding='utf-8')
|
||||||
print("Datei wurde gespeichert:", self.savefilename)
|
print("Datei wurde gespeichert:", self.savefilename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user