def _assert_where_conversion(self, original, cond, values, expected, expected_dtype):
    'test coercion triggered by where'
    target = original.copy()
    res = target.where(cond, values)
    tm.assert_equal(res, expected)
    assert (res.dtype == expected_dtype)
test coercion triggered by where
def _assert_where_conversion(self, original, cond, values, expected, expected_dtype):
    
    target = original.copy()
    res = target.where(cond, values)
    tm.assert_equal(res, expected)
    assert (res.dtype == expected_dtype)