[Numpy-discussion] different values for ndarray when printed with or without [ ]
nicholas.nadeau at gmail.com
Wed Oct 18 08:39:01 EDT 2017
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
Because if that's the case, then you may run into issues, as `list` is a
built-in Python keyword (for the `list` class).
Nicholas Nadeau, P.Eng., AVS
On 18 October 2017 at 06:44, Nissim Derdiger <NissimD at elspec-ltd.com> 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 converting that list back to np array
> (arr=np.array(list)) – the printing issue returns.
> Any ideas what may cause that?
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion