Python Forum

Full Version: splitting a csv file to create another csv
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
0


I have a csv file that as data as below in two columns

"ou=People, o=ic.com,o=xerox",{}

"uid=test.test30,ou=People,o=ic.com,o=xerox","{'claimnumber': ['XXX'], 'idnumber': ['44430']}"

I need to create a new csv file with below as the fields

claimnumber, idnumber
,
XXX, 44430

Any help?
what have you tried so far?
(Nov-24-2020, 04:39 PM)Larz60+ Wrote: [ -> ]what have you tried so far?

Agree Larz60+, show your original code.
I am new to python and couldn't make a head start
You should take a tutorial before continuing. You will learn nothing if we do it for you.
I suggest one of:
How to Think like a Computer Scientist: Interactive Edition
or
Python Tutorial