def test_pivot_integer_bug(self):
    df = DataFrame(data=[('A', '1', 'A1'), ('B', '2', 'B2')])
    result = df.pivot(index=1, columns=0, values=2)
    repr(result)
    tm.assert_index_equal(result.columns, Index(['A', 'B'], name=0))
def test_pivot_integer_bug(self):
    df = DataFrame(data=[('A', '1', 'A1'), ('B', '2', 'B2')])
    result = df.pivot(index=1, columns=0, values=2)
    repr(result)
    tm.assert_index_equal(result.columns, Index(['A', 'B'], name=0))