I've been going crazy trying to find a way out.
Input a 2D array and several column numbers, return the average of every number in those specific columns in the form of array.
I know how to output the average of all columns, but I have no idea how to output only specific columns' averages.
a = array([[0, 0,1], [1, 1,2], [3, 3,3]])
get_average(a,[0,1])
array([1.333333333, 1.333333333333])