%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /backups/router/usr/local/lib/python3.11/site-packages/pandas/tests/series/methods/
Upload File :
Create Path :
Current File : //backups/router/usr/local/lib/python3.11/site-packages/pandas/tests/series/methods/test_pop.py

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)

Zerion Mini Shell 1.0