I want to find the sum of all 1000 arrays without breaking the shape of the numpy array, but I don't know how.Data image
Thing I want to do
a1 = np.random.randn (7,7) a2 = np.random.randn (7,7) a3 = np.random.randn (7,7) ・ ・ ・ a1000 = np.random.randn (7,7)
a_sum = a1 + a2 + a3 ・ ・ ・ ・ a1000 a_sum.shape # (7,7)
I searched a lot, but couldn't find a suitable method.
I am very sorry for the basic question, but I would appreciate it if you could teach me.
Answer # 1
After stacking with numpy and making it a function, I was able to handle it with an addition formula.
- python - i don't know how to deal with the error
- i don't know how to write python
- python - [beginner] i don't know how to write a bat file i want to run py
- python - i don't know how to fix the type error
- python - i don't know how to do css select in bs4
- python - i don't know how to adapt the sample code
- python - i don't know how to use wait_for_motion () and wait_for_no_motion ()
- python - i don't know the cause of the error
- python - i want to know how to not plot data with a value of 0 in matplotlib
- [wordpress] i don't know how to move pages
- c # - i don't know how to call aync/awit
- facebook - i don't know how to set the callback url to the app!
- i don't know how to fix it due to a recursion error
- c - i don't know how many times it has been run
- [vba] i don't know how to log in automatically from the next time [keep login]
- i don't know how to upload php
- xcode [beginner] i don't know how to put out the code
- reactjs - [react] i don't know how to pass arguments
- html - i don't know how to specify an element
- How to split 2D array in Python?
- python : How in Pandas based on DateTimeIndex one array get values from another array focusing on his DateTimeIndex
- Clustering SCIPY Python
- I do not know how to deal with ValueError: Length Mismatch at Python.
- How can you allocate white glows on ultraviolet image? Python
- Python: how to add a column with a specified value to the beginning of the array
- Gradient from gradient function in Python
- python : How to Remove Multiple Rows of NUMPY NDARRAY
- python : Why an error is issued: setting an array element with a sequence
- python : Help me please! How can I write a similar program, but without NUMPY and RANDOM?