7
votes
3answers
1k views

Python: getting lists of values from a CSV - Is there a cleaner way to do this?

So, I have a function that takes a column title, and a response.body from a urllib GET (I already know the body contains text/csv), and iterates through the data to build a list of values to be ...
5
votes
2answers
117 views

Critiques on a trivially easy to use Python CSV class

I have been working on a project where I needed to analyze multiple, large datasets contained inside many CSV files at the same time. I am not a programmer but an engineer so I did a lot of searching ...
4
votes
4answers
844 views

searching a value from one csv file in another csv file - Python

I am writing a script that takes one csv file searches a value in another csv file then writes an output depending on the result it finds. I have been using python's csv. Distreader and writer, I ...
3
votes
1answer
54 views

Python: Improve csv script efficiency

I'm tasked with getting emails from a .csv file and using them to submit a form. I am using the csv and mechanize Python libraries to achieve this. This is my code: import re import mechanize ...
1
vote
3answers
147 views

More efficient way to retrieve first occurrence of every unique value from a csv column?

A large .csv file I was given has a large table of flight data. A function I wrote to help parse it iterates over the column of Flight ID's, and then returns a dictionary containing the index and ...