Project Detail

Python Script to modify csv files  

Python Script to modify csv files is project number 337369
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: glyph

Budget: $30-250

Created: 11/01/2008 at 14:06 EDT

Bid Count: 13

Average Bid:
$ 102

11/05/2008 at 14:06 EST

Project Creator: rlobianco
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (10 reviews)

Bid On This Project
 

Description

I currently have a couple of Python scripts that takes a csv file and modifies the data and writes it to a new csv file in a TAB delimited format that I need some changes to be made to. Please read this file carefully. I tried to include everything I needed done in this project description but some small changes/tweaks may need to be made during the process.

The scripts are attached to this project for reference.

Process_data.py processes the main data file named data-sample1.csv

Process_inventory.py processes the inventory data file called inventory data2.txt

The new features I need added are.

Both scripts need to be able to read a txt file that contains a list of the item_no/Product_code’s that will be written to the output file. All other records will be ignored.

In (process_data.py) I need to be able to override certain product categories that are written to the output file using another txt file that would contain two fields per line (source Category, output category)

In (process_data.py) if the input record has a map_price set the in the output file the record map_price should be set to “Y” and the output list_price field should be set to the input value of map_price.

If no map_price is set in the input file then may_price in the output file should be set to “N” and list_price in the output file should be set to the input file value MSRP.

In (process_inventory.py) Right now it calculates the output file price value using this formula.
outrow['Price']=str(float(inrow['price'] or 0 )*1.10)

I need it to read a text file that would contain the product_code/item_no with the price override that should be written to the output file. If it’s not found in the text file it should just default to the formula above.

In (process_inventory.py) I need the map_price routines made in (process_data.py) duplicated the same way.
I need a second set of the above scripts to work a little differently.

Instead of only writing records based on the list of product codes, I need the opposite where it ignores records in the list. I also need a way to ignore records written to the output file based on the input file value ‘brand’ so certain brand products are not written.
I have a second input data file that I also need to process the same as the above methods.

I need a third version of process_data.py written to work with the data file data-sample2.csv this file does not have a header that contains the record names though. Right now they are like this.
'Product code','Detailed image','Product name','Description','Price','map_price','Weight','Quantity','Manufacturer','Category'
The output file needs to be I the same format as the other data file and needs to have new static fileds added just like the process_data.py but like this.
outrow['Available']="Y"
outrow['Supplier']="New Jersey"









Additional files submitted:
process_data.py
process_inventory.py
inventory data2.txt
data-sample2.csv
data-sample1.csv

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

250

3 days

11-01-2008 14:51 EDT

Hello, I am expert, let me do it for you. Thank you!

help

 

100

0 days

11-01-2008 15:53 EDT

Ready to do it, have a look at PM. Thanks.

help

 

150

2 days

11-01-2008 15:03 EDT

Dear Sir! I am an expert. Ready to start and finish within 2 days. My bid is for fast professional service exciting my customers. Please contact in PM if you have any questions. Best Regards, Zeke

help

 

125

5 days

11-02-2008 04:28 EST

check your pmb for details.

help

 

240

3 days

11-02-2008 04:16 EST

Hello, 2-3 days work for good python dev (and for me). maybe 5 for beginner. You know perl and have sources, isn't difficult to do it yourself? Valery.

help

 

50

5 days

11-03-2008 16:08 EST

Hello, I just had finished a similar project. I've got some considerations. Read PM, please.

help

 

40

2 days

11-04-2008 10:33 EST

(No Feedback Yet)

I already wrote similar scripts before, so I think I can modify yours one correctly.

help

 

75

2 days

11-01-2008 17:44 EDT

(No Feedback Yet)

Professional C, Java, Python, mySql developer ready to implement your project quickly and completely.

help

 

70

2 days

11-01-2008 18:38 EDT

(No Feedback Yet)

I'm very experienced in this kind of scripting. I'll deliver and document it with good quality and on time.

help

 

60

2 days

11-02-2008 23:58 EST

(No Feedback Yet)

Could be done in 1-2 days.

help

 

40

2 days

11-03-2008 11:07 EST

(No Feedback Yet)

Very well defined project, it should be pretty straightforward. I'll do it for the rating. Thank you!

help

 

100

1 day

11-04-2008 07:22 EST

(No Feedback Yet)

Full time researcher in IA domain. I develop principally in Python. Please contact me for more details.

help

 

30

4 days

11-04-2008 10:26 EST

(No Feedback Yet)

can do . experienced data extraction csv .

help


    Bid on this Project