

def test_type_check(self):
    df = pd.DataFrame({
        'a': [1, (- 3.14), 7],
        'b': ['4', '5', '6'],
    })
    with tm.assertRaisesRegexp(TypeError, '1-d array'):
        to_numeric(errors)
    for errors in ['ignore', 'raise', 'coerce']:
        with tm.assertRaisesRegexp(TypeError, '1-d array'):
            to_numeric(df, errors=errors)

dataset/ETHPy150Open pydata/pandas/pandas/tools/tests/test_util.py TestToNumeric.test_type_check/VarMisuse@60/86 `df`->`errors`