I test it against np.ma.median checking that the imputer give the same results with dense and sparse matrices.