Re: [Numpy-discussion] numpy.mean problems

2011-12-14 Thread ferreirafm
Hi Eraldo, Indeed Pandas is a really really nice module. If it going to take part of numpy, that's even better. Thanks for the suggestion. All the Best, Fred Eraldo Pomponi wrote: > > Hi Fred, > > Pandas has a nice interface to PyTable if you still need it: > > http://pandas.sourceforge.net/

Re: [Numpy-discussion] numpy.mean problems

2011-12-14 Thread ferreirafm
Hi Eraldo, Indeed, Pandas is a really really nice module! If it is going to take part of numpy, that's even better. Thanks for the suggestion. All the Best, Fred Eraldo Pomponi wrote: > > Hi Fred, > > Pandas has a nice interface to PyTable if you still need it: > > http://pandas.sourceforge.

Re: [Numpy-discussion] numpy.mean problems

2011-12-14 Thread ferreirafm
Thanks for the correction. Good to know! I've got this outdated information from pytable's mailing list. Regards, Fred David Verelst wrote: > > Note that the pytables pro you are referring to is no longer behind a > pay wall. Recently the project went through some changes and the pro > versio

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread David Verelst
Note that the pytables pro you are referring to is no longer behind a pay wall. Recently the project went through some changes and the pro versions disappeared. All pro features where merged into the main project and, are as a consequence, also available for free. Regards, David On 13/12/11 21

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread Eraldo Pomponi
Hi Fred, Pandas has a nice interface to PyTable if you still need it: http://pandas.sourceforge.net/io.html#hdf5-pytables However, my intention was just to point you to pandas because it is really a powerful tool if you need to deal with tabular heterogenic data. It is also important to notice t

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread ferreirafm
Hi Eraldo, Thanks for your suggestion. I was using pytables but give up after known that some very useful capabilities are sold as a professional package. However, it still useful to many printing and data manipulation and, also, it can handle extremely large datasets (which is not my case.). Reg

Re: [Numpy-discussion] numpy.mean problems

2011-12-13 Thread Eraldo Pomponi
Hi Fred, I would suggest you to have a look at pandas (http://pandas.sourceforge.net/) . It was really helpful for me. It seems well suited for the type of data that you are working with. It has nice "brodcasting" capabilities to apply numpy functions to a set column. http://pandas.sourceforge.net

Re: [Numpy-discussion] numpy.mean problems

2011-12-11 Thread ferreirafm
Aronne Merrelli wrote: > > I can recreate this error if tab is a structured ndarray - what is the > dtype of tab? > > If that is correct, I think you could fix this by simplifying things. > Since > tab is already an ndarray, you should not need to convert it back into a > python list. By conver

Re: [Numpy-discussion] numpy.mean problems

2011-12-10 Thread Aronne Merrelli
On Sat, Dec 10, 2011 at 5:47 AM, ferreirafm wrote: > > > Hi Stéfan, > Thanks for your replay. Have a look in the arrays at: > http://ompldr.org/vYm83ZA > Regards, > Fred > -- I can recreate this error if tab is a structured ndarray - what is the dtype of tab? If that is correct, I think you co

Re: [Numpy-discussion] numpy.mean problems

2011-12-10 Thread ferreirafm
Stéfan van der Walt wrote: > > When posting to the mailing list, it's a good idea to have a small, > self contained example (otherwise we can't reproduce your problem). > In this specific case, I'd like to be able to see what the outputs of > "print tab" and "print stat_array" are. > > Regards

Re: [Numpy-discussion] numpy.mean problems

2011-12-09 Thread Stéfan van der Walt
On Fri, Dec 9, 2011 at 11:47 AM, ferreirafm wrote: > > Hi everyone, > I'm quite new to numpy and python either. Could someone, please, tell me > what I'm doing wrong? > Here goes my peace of code: > > def stats(filename): >    """Utilility to perform some basic statistics on columns.""" >    tab =

[Numpy-discussion] numpy.mean problems

2011-12-09 Thread ferreirafm
Hi everyone, I'm quite new to numpy and python either. Could someone, please, tell me what I'm doing wrong? Here goes my peace of code: def stats(filename): """Utilility to perform some basic statistics on columns.""" tab = get_textab(filename) stat_list = [ ] for row in sort_tab(