I have a numpy stacked array like so:
[[10. 12. 15. 20. 24. 20.]
[40. 48. 60. 20. 24. 20.]]
How can I add each of the elements together and create a 1D array so that it becomes:
[50. 60. 75. 40. 48. 40]
I also need this this to work no matter how many lists are in the stacked array. Any help would be appreciated.