Fixture for tests on indexes, series and series with a narrow dtype copy to avoid mutation, e.g. setting .name
(request)
| 866 | |
| 867 | @pytest.fixture(params=_index_or_series_objs.keys()) |
| 868 | def 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 = { |