hyb
2026-01-07 c7f60dc7e9a36596f0e0d1787bd0cca4e9b57bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
from pandas import Series
import pandas._testing as tm
 
 
def test_pop():
    # GH#6600
    ser = Series([0, 4, 0], index=["A", "B", "C"], name=4)
 
    result = ser.pop("B")
    assert result == 4
 
    expected = Series([0, 0], index=["A", "C"], name=4)
    tm.assert_series_equal(ser, expected)