def mean_center(matrix):
    'Performs mean centering across axis 0\n\n    Args:\n        matrix (np.ndarray): Input matrix that needs to be mean centered\n    '
    avg = np.mean(matrix, axis=0)
    matrix -= avg
Performs mean centering across axis 0

Args:
    matrix (np.ndarray): Input matrix that needs to be mean centered
def mean_center(matrix):
    'Performs mean centering across axis 0\n\n    Args:\n        matrix (np.ndarray): Input matrix that needs to be mean centered\n    '
    avg = np.mean(matrix, axis=0)
    matrix -= avg