def replace(self, F, G, map=False):
        M = self[:, :]

        return M.applyfunc(lambda x: x.replace(F, G, map))
Test to ensure it's possible to switch out response headers for URL routes on the fly
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.replace--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestHTTPRouter.test_response_headers