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

Function index_or_series_memory_obj

pandas/conftest.py:890–896  ·  view source on GitHub ↗

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

(request)

Source from the content-addressed store, hash-verified

888
889@pytest.fixture(params=_index_or_series_memory_objs.keys())
890def index_or_series_memory_obj(request):
891 """
892 Fixture for tests on indexes, series, series with a narrow dtype and
893 series with empty objects type
894 copy to avoid mutation, e.g. setting .name
895 """
896 return _index_or_series_memory_objs[request.param].copy(deep=False)
897
898
899# ----------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected