mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
added initial code #1
This commit is contained in:
9
de/convert_to_csv_de.py
Normal file
9
de/convert_to_csv_de.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import pandas as pd
|
||||
import os
|
||||
|
||||
# Convert data to csv
|
||||
for dirname, _, filenames in os.walk('input'):
|
||||
for filename in filenames:
|
||||
read_file = pd.read_excel (os.path.join(dirname, filename))
|
||||
read_file.to_csv (os.path.join('csv', filename.split(".", 1)[0] + ".csv"), index = None, header=True)
|
||||
|
||||
Reference in New Issue
Block a user