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

Function index_or_series_obj

pandas/conftest.py:868–873  ·  view source on GitHub ↗

Fixture for tests on indexes, series and series with a narrow dtype copy to avoid mutation, e.g. setting .name

(request)

Source from the content-addressed store, hash-verified

866
867@pytest.fixture(params=_index_or_series_objs.keys())
868def index_or_series_obj(request):
869 """
870 Fixture for tests on indexes, series and series with a narrow dtype
871 copy to avoid mutation, e.g. setting .name
872 """
873 return _index_or_series_objs[request.param].copy(deep=False)
874
875
876_typ_objects_series = {

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected