Find Jobs
Hire Freelancers

Python code to process a CSV file

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
I have a large CSV file with 4 columns (date, name1, name2, amount): Example: 1/12/13 12:29 Artem Boris 80 1/12/13 12:31 Boris Duane 81 1/12/13 12:29 Robert Richard 70 1/12/13 12:29 Michael Eric 149 1/12/13 12:29 Richard Michael 80 1/12/13 12:34 Boris Artem 150 1/12/13 12:38 Artem Michael 151 I want to process the file and get the following another CSV file as output: Date Name 1 Name 2 Amount Chain ID 1/12/13 12:29 Artem Boris 80 1 1/12/13 12:31 Boris Duane 81 1 1/12/13 12:34 Boris Artem 150 2 1/12/13 12:38 Artem Michael 151 2 1/12/13 12:29 Michael Eric 149 2 The python code should look through the input file, find pairs of records where Name2=Name1 AND (difference in amount <= 1) AND (difference in date <= 10 minutes), and assign all such pairs with a unique ID in the output file. Pairs can be triples (like in the example above for chain ID=2), or longer chains. I want Python 3.4 compatible code.
Project ID: 6960717

About the project

2 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, Happy to do this one for you really quick. Please message me if you wish to proceed. Cheers! Ravi
$35 USD in 1 day
4.6 (1 review)
1.1
1.1
2 freelancers are bidding on average $23 USD for this job
User Avatar
Please a.d.d Me S.k.y.p.e I.d---jolip05 for more discus *********************************************************************************************************
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SWITZERLAND
Lausanne, Switzerland
5.0
3
Payment method verified
Member since Jan 10, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.