Re: [Numpy-discussion] Reordering 2 dimensional array by column

2012-08-02 Thread Nicole Stoffels
Thanks eat! It helps and it's so easy! :) On 02.08.2012 14:59, eat wrote: Hi, On Thu, Aug 2, 2012 at 3:43 PM, Nicole Stoffels mailto:nicole.stoff...@forwind.de>> wrote: Dear all, I have a two-dimensional array: a = array([[1,2,3],[0,2,1],[5,7,8]]) I want to re

[Numpy-discussion] Reordering 2 dimensional array by column

2012-08-02 Thread Nicole Stoffels
Dear all, I have a two-dimensional array: a = array([[1,2,3],[0,2,1],[5,7,8]]) I want to reorder it by the last column in descending order, so that I get: b =array([[5, 7, 8],[1, 2, 3],[0, 2, 1]]) What I did first is the following, which reorders the array in ascending order (I found that met

Re: [Numpy-discussion] Numpy Memory Error with corrcoef

2012-03-27 Thread Nicole Stoffels
Le 27/03/2012 11:12, Nicole Stoffels a écrit : *if __name__ == '__main__': data_records = random.random((459375, 24)) correlation = corrcoef(data_records)* May I assume that your data_record is made of 24 different variables of which you have 459375 observations ? If thi

[Numpy-discussion] Numpy Memory Error with corrcoef

2012-03-27 Thread Nicole Stoffels
a mistake in the application of corrcoef? I hope that you can help me! Thanks! Best regards, Nicole Stoffels -- Dipl.-Met. Nicole Stoffels Wind Power Forecasting and Simulation ForWind - Center for Wind Energy Research Institute of Physics Carl von Ossietzky University Oldenburg Ammerländer