MCPcopy
hub / github.com/pandas-dev/pandas / test_dropna_series

Function test_dropna_series

pandas/tests/copy_view/test_methods.py:703–711  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

701
702@pytest.mark.parametrize("val", [5, 5.5])
703def test_dropna_series(val):
704 ser = Series([1, val, 4])
705 ser_orig = ser.copy()
706 ser2 = ser.dropna()
707 assert np.shares_memory(ser2.values, ser.values)
708
709 ser2.iloc[0] = 0
710 assert not np.shares_memory(ser2.values, ser.values)
711 tm.assert_series_equal(ser, ser_orig)
712
713
714@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

dropnaMethod · 0.95
SeriesClass · 0.90
copyMethod · 0.45

Tested by

no test coverage detected