[SciPy-user] compare two csv files

Alan G Isaac aisaac@american....
Thu Jan 24 14:49:06 CST 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