Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1497702
csv_to_excelCSV.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
498 B
Referenced Files
None
Subscribers
None
csv_to_excelCSV.py
View Options
#!/usr/bin/env python3
import
os
from
os
import
listdir
from
os.path
import
isfile
,
join
inputPath
=
"./splitted_data/values_20200325_1312_1/"
inputFile
=
"out.csv"
outputFileName
=
"out_excel.csv"
with
open
(
inputPath
+
"/"
+
inputFile
,
'r'
)
as
file
:
file_content
=
file
.
readlines
()
file_content
=
[
f
.
replace
(
','
,
';'
)
for
f
in
file_content
]
file_content
=
[
f
.
replace
(
'.'
,
','
)
for
f
in
file_content
]
with
open
(
inputPath
+
"/"
+
outputFileName
,
'w'
)
as
file
:
file
.
writelines
(
file_content
)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Sun, Mar 1, 9:38 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
285813
Default Alt Text
csv_to_excelCSV.py (498 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment