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
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
------
Message: 1
Date: Wed, 18 Oct 2017 10:44:22 +
From: Nissim Derdiger
To: "numpy-discussion@python.org"
Subject: [Numpy-discussion] different values for ndarray when printed
with or without [ ]
Message-ID:
<9EFE3345170EF
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
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
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 converting that list back to np array
(arr=np.array(list)) - the pri