jeudi 28 juillet 2016

Converting a log file into a csv file using Python

I have the following problem at work - I need to take a log file with items arranged as follows:

A1
B1
C1
A2
B2
C2
.
.
.
An
Bn
Cn

I need a complete csv file like so:

A1,B1,C1
A2,B2,C2
A3,B3,C3
...
An,Bn,Cn

How can I do this using a python script?

Aucun commentaire:

Enregistrer un commentaire