[SciPy-user] compare two csv files

Alan G Isaac aisaac at american.edu
Thu Jan 24 15:49:06 EST 2008


On Thu, 24 Jan 2008, Fabian Braennstroem apparently wrote:
> I would like to compare two csv file; actually two columns 
> from two csv files.

I do not understand your question.
I take it that you put the data into two arrays,
and then you want to "compare" two columns,
one from each array?

>>> x = N.random.rand(5,3)
>>> y = N.random.rand(5,3)
>>> x[:,1]>y[:,2]
array([False,  True,  True, False,  True], dtype=bool)
>>>

Cheers,
Alan Isaac






More information about the SciPy-User mailing list