(deep)
| 4159 | |
| 4160 | @pytest.mark.parametrize("deep", [True, False]) |
| 4161 | def test_memory_usage_index(deep): |
| 4162 | s = pd.Series([1, 2, 3, 4], index=["a", "b", "c", "d"]) |
| 4163 | if pyarrow_strings_enabled(): |
| 4164 | # pandas should measure memory usage of pyarrow strings |
| 4165 | s = to_pyarrow_string(s) |
| 4166 | expected = s.index.memory_usage(deep=deep) |
| 4167 | ds = dd.from_pandas(s, npartitions=2) |
| 4168 | result = ds.index.memory_usage(deep=deep) |
| 4169 | assert_eq(expected, result) |
| 4170 | |
| 4171 | |
| 4172 | @pytest.mark.parametrize("index", [True, False]) |
nothing calls this directly
no test coverage detected