Question: In a 2D numpy array called arr, how do I square root every element in the first column only (leave the second column alone)? I
In a 2D numpy array called arr, how do I square root every element in the first column only (leave the second column alone)? I tried --> arr.sqrt([:,0]) but got a "invalid syntax" error.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
