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)
| 888 | |
| 889 | @pytest.fixture(params=_index_or_series_memory_objs.keys()) |
| 890 | def 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 | # ---------------------------------------------------------------- |