def test_pivot_duplicates(self):
    data = DataFrame({'a': ['bar', 'bar', 'foo', 'foo', 'foo'], 'b': ['one', 'two', 'one', 'one', 'two'], 'c': [1.0, 2.0, 3.0, 3.0, 4.0]})
    with tm.assert_raises_regex(ValueError, 'duplicate entries'):
        data.pivot('a', 'b', 'c')
def test_pivot_duplicates(self):
    data = DataFrame({'a': ['bar', 'bar', 'foo', 'foo', 'foo'], 'b': ['one', 'two', 'one', 'one', 'two'], 'c': [1.0, 2.0, 3.0, 3.0, 4.0]})
    with tm.assert_raises_regex(ValueError, 'duplicate entries'):
        data.pivot('a', 'b', 'c')