Re: [Numpy-discussion] different values for ndarray when printed with or without

2017-10-18 Thread Nissim Derdiger
Nice catch Andre!!! np.set_printoptions(suppress=True) solved it. Thanks!!! Message: 4 Date: Wed, 18 Oct 2017 20:31:54 +0200 From: Andras Deak To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] different values for ndarray when printed with or without Message-ID

Re: [Numpy-discussion] different values for ndarray when printed with or without

2017-10-18 Thread Andras Deak
On Wed, Oct 18, 2017 at 7:30 PM, Nissim Derdiger wrote: > 3. difference between values are: > [ 2.25699615e+02 5.51561475e-01 3.81394744e+00 1.03807904e-01] > Instead of: > [225.69961547851562, 0.5515614748001099, 3.8139474391937256, > 0.10380790382623672] The beha

Re: [Numpy-discussion] different values for ndarray when printed with or without

2017-10-18 Thread Nissim Derdiger
ion/attachments/20171018/7f206b66/attachment-0001.html> ---------- Message: 2 Date: Wed, 18 Oct 2017 14:25:44 +0200 From: Andras Deak To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] different values for ndarray when printed with or without [ ] M

Re: [Numpy-discussion] different values for ndarray when printed with or without [ ]

2017-10-18 Thread Nicholas Nadeau
Hi Nissim, While a working example will be helpful, I just wanted to confirm that you're not assigning a value to `list`, as you did in your message (e.g., ` list = arr.tolist()`). Because if that's the case, then you may run into issues, as `list` is a built-in Python keyword (for the `list` cla

Re: [Numpy-discussion] different values for ndarray when printed with or without [ ]

2017-10-18 Thread Andras Deak
On Wed, Oct 18, 2017 at 12:44 PM, Nissim Derdiger wrote: > Hi all, > > I have a ndarray, that shows different values when called like that: > print(arr) or like that print(arr[0::]). > > When changing it back to a python string (with list = arr.tolist()) – both > prints return same value, but when