human
What is a good Python function to get median in 2d array in numpy.
assistant
Here is a Python function to get median in 2d array in numpy

import numpy as np

def get_median_2d(array):
    """Get median in 2d array in numpy."""
    return np.median(array, axis=0)

# Enter the matrix
matrix = np.array([[1,2,3],[4,5,6],[7,8,9]])

# Calling the function
print((get_median_2d(matrix)))

#Example Output
# [4. 5. 6.]

#Remember to inspect code for bugs.