def test_sum_uint64_overflow():
    df = pd.DataFrame([[1, 2], [3, 4], [5, 6]], dtype=object)
    df = (df + 9223372036854775807)
    index = pd.Index([9223372036854775808, 9223372036854775810, 9223372036854775812], dtype=np.uint64)
    expected = pd.DataFrame({1: [9223372036854775809, 9223372036854775811, 9223372036854775813]}, index=index)
    expected.index.name = 0
    result = df.groupby(0).sum()
    tm.assert_frame_equal(result, expected)
def test_sum_uint64_overflow():
    df = pd.DataFrame([[1, 2], [3, 4], [5, 6]], dtype=object)
    df = (df + 9223372036854775807)
    index = pd.Index([9223372036854775808, 9223372036854775810, 9223372036854775812], dtype=np.uint64)
    expected = pd.DataFrame({1: [9223372036854775809, 9223372036854775811, 9223372036854775813]}, index=index)
    expected.index.name = 0
    result = df.groupby(0).sum()
    tm.assert_frame_equal(result, expected)