0

I have a list of numpy-float arrays, but it prints as [[array([1 2 3 ...]), array([4 5 6 ...]), ...]

How can I print it to look nicer, something like [[1 2 3 ...], [4 5 6 ...], ...]

2
  • That's a bad dupe @Austin — the OP is starting with a python list of numpy arrays. Commented Dec 25, 2019 at 2:22
  • @MarkMeyer, Does not matter. OP can iterate the python list and apply the same operation as in the dupe. Commented Dec 25, 2019 at 2:26

1 Answer 1

1

You can use tolist()

import numpy as np temp_list = [] for i in range(10): temp_list.append(np.zeros([5, 10])) temp = np.array(temp_list) temp.tolist() 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.