def min_max_axis(X, axis):
 if (isinstance(X, sp.csr_matrix) or isinstance(X, sp.csc_matrix)):
  return sparse_min_max(X, axis=axis)
 else:
  _raise_typeerror(X)

def min_max_axis ( X , axis ) : if ( isinstance ( X , sp . csr_matrix ) or isinstance ( X , sp . csc_matrix ) ) : return sparse_min_max ( X , axis = axis ) else : _raise_typeerror ( X )
compute minimum and maximum along an axis on a csr or csc matrix parameters x : csr or csc sparse matrix .