mport pandas as pd import os directory = '.' for filename in os.listdir(directory): if filename.endswith(".csv") and not filename.startswith('changed_'): input_file = filename output_file = "changed_" + filename if not os.path.exists(output_file): print(input_file) print(output_file) df = pd.read_csv(input_file, usecols=range(6)) dfnew = df.drop('Comment', axis=1) export_csv = dfnew.to_csv (output_file, index = None, header=True)
Posts mit dem Label csv werden angezeigt. Alle Posts anzeigen
Posts mit dem Label csv werden angezeigt. Alle Posts anzeigen
Mit Python eine CSV Datei modifizieren (löschen)
Abonnieren
Posts (Atom)
Datei in einer windows.wim image ändern
Um Dateien in einer Datei.wim zu ändern, und zwar nicht im 1. Index sondern 2. öffnet man Powershell (ich habs jetzt im admin Modus gestart...
-
Um Dateien in einer Datei.wim zu ändern, und zwar nicht im 1. Index sondern 2. öffnet man Powershell (ich habs jetzt im admin Modus gestart...
-
I am running an DietPi (downloaded on dietpi -> NanoPi Air) on a NanoPi Air. These are the huddles I had: Theme: UART2 and i2c0 Afer read...
-
I have created an image in JPG with 160x128 Pixels, 144 dpi and 24 Bitdepth. But with every exporting try in GIMP it can't be read. Thi...