T
T
Timebird2016-10-29 15:58:21
Python
Timebird, 2016-10-29 15:58:21

How to reshape an array?

There are multiple arrays that have the same length but different shapes. All of them look something like this when printed:
a = [1 4 5 8 12 22 98 ...]
One of the arrays has the form (80, ), the second: (80, 2, 1), the third: (80, 1, 1). How to bring all arrays to the same shape?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny Kravchenko, 2016-10-29
@Arseny_Info

shape = (80, ) just means that the array is one-dimensional. I think the original problem is something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question