Re: maximum value in a column of file

2008-07-23 Thread [EMAIL PROTECTED]
> > thank you for your answer > > actually i've to do some statistics (maximum,minimum,mean,standard > > deviation,) of a file of data in which each column is a particular > > type of data. (the file is a tab separated value). > > I was trying to do this by using python (usually i work with for

Re: maximum value in a column of file

2008-07-23 Thread Fredrik Lundh
maurizio wrote: thank you for your answer actually i've to do some statistics (maximum,minimum,mean,standard deviation,) of a file of data in which each column is a particular type of data. (the file is a tab separated value). I was trying to do this by using python (usually i work with fo

Re: maximum value in a column of file

2008-07-23 Thread Scott David Daniels
maurizio wrote: thank you for your answer actually i've to do some statistics (maximum,minimum,mean,standard deviation,) of a file of data in which each column is a particular type of data. (the file is a tab separated value). I was trying to do this by using python (usually i work with for

Re: Re: maximum value in a column of file

2008-07-23 Thread maurizio
thank you for your answer actually i've to do some statistics (maximum,minimum,mean,standard deviation,) of a file of data in which each column is a particular type of data. (the file is a tab separated value). I was trying to do this by using python (usually i work with fortran or bash, bu

Re: maximum value in a column of file

2008-07-23 Thread Fredrik Lundh
maurizio wrote: i tryed to use the module max of numpy, the problem is that i don't know how to put the column of the file in an array. (i'm new in phyton). anyway if you think there is a better way. What kind of file is it? Did you pick numpy because you want to do matrix operations (

Re: maximum value in a column of file

2008-07-23 Thread Michiel Overtoom
Maurizio wrote... > the problem is that i don't know how to put the column of the file in an > array. (i'm new in phyton). Give us an example of how your file looks, and what you want to extract from it, so that we don't have to guess. Greetings, -- "The ability of the OSS process to collect

Re: Re: maximum value in a column of file

2008-07-23 Thread maurizio
i tryed to use the module max of numpy, the problem is that i don't know how to put the column of the file in an array. (i'm new in phyton). anyway if you think there is a better way. Fredrik Lundh wrote: maurizio wrote: which is the best way for the calculation of the maximum value in

Re: maximum value in a column of file

2008-07-23 Thread Chris
On Jul 23, 9:25 am, maurizio <[EMAIL PROTECTED]> wrote: >  which is the best way for the calculation of the maximum value in a >     column of a file? oddly enough >>> help(max) Help on built-in function max in module __builtin__: max(...) max(iterable[, key=func]) -> value max(a, b, c,

Re: maximum value in a column of file

2008-07-23 Thread Fredrik Lundh
maurizio wrote: which is the best way for the calculation of the maximum value in a column of a file? what approach have you tried, and what happened when you tried it? -- http://mail.python.org/mailman/listinfo/python-list

maximum value in a column of file

2008-07-23 Thread maurizio
which is the best way for the calculation of the maximum value in a column of a file? -- http://mail.python.org/mailman/listinfo/python-list