Working with CSV files

Slutfört Publicerat May 4, 2013 Betalades vid leverans
Slutfört Betalades vid leverans

1: open CSV file, located on hard drive. this file has 4 to 5 different things in it's header

2: using a pre defined dictionary{key:value} look at a specific location in each row of the csv file (ie.. row[1] )

3: if the str of data in that location matches one of the key's in the dictionary, I want to write a new_file which includes all of the original data in the row + I want to insert the matching key,value and place that in the rows data at position row[3]

4 if the str of data DOES not match any of the keys in the key_list than I want to write a different file to including all the original data (of the rows that do not have a match)

I will supply a simple csv file with a short list of data so that you can work with it

5. So I want to open a csv file scan it and than create 2x new files, 1x file that matches the key_list, and 1x file that does not have any matches from the key_list

6. the header should of course be the first line in both new files

Python

Projekt-id: #4490760

About the project

6 offerter Distansprojekt Aktivt May 4, 2013

Tilldelades:

fejs

Hi Sir. I've finished program for You, I'll send You sample results. If You have any more requests, feel free to ask. Best regards, Fejs.

$30 USD inom 0 dagar
(1 omdöme)
2.8

6 frilansare har lagt bud på i genomsnitt $56 för det här jobbet

M5L2764K

Please see PMB

$35 USD inom 1 dag
(7 omdömen)
4.8
biddyweb

You can have it in a few hours.

$84 USD inom 1 dag
(1 omdöme)
4.2
dobreiiita

Hi, I can help you.

$99 USD inom 2 dagar
(4 omdömen)
3.4
euripedesrocha

Hi I can help you!

$35 USD inom 1 dag
(0 omdömen)
0.0
machinist

I already did before a task exactly like you require so it will be easy for me to do it for you now. I am a good python programmer and will do this for you exactly as you want. I look forward to hearing from you.

$50 USD inom 1 dag
(0 omdömen)
0.0