test_pop.py 295 B

12345678910111213
  1. from pandas import Series
  2. import pandas._testing as tm
  3. def test_pop():
  4. # GH#6600
  5. ser = Series([0, 4, 0], index=["A", "B", "C"], name=4)
  6. result = ser.pop("B")
  7. assert result == 4
  8. expected = Series([0, 0], index=["A", "C"], name=4)
  9. tm.assert_series_equal(ser, expected)