(deep)
| 4168 | |
| 4169 | @pytest.mark.parametrize("deep", [True, False]) |
| 4170 | def test_memory_usage_index(deep): |
| 4171 | s = pd.Series([1, 2, 3, 4], index=["a", "b", "c", "d"]) |
| 4172 | if pyarrow_strings_enabled(): |
| 4173 | # pandas should measure memory usage of pyarrow strings |
| 4174 | s = to_pyarrow_string(s) |
| 4175 | expected = s.index.memory_usage(deep=deep) |
| 4176 | ds = dd.from_pandas(s, npartitions=2) |
| 4177 | result = ds.index.memory_usage(deep=deep) |
| 4178 | assert_eq(expected, result) |
| 4179 | |
| 4180 | |
| 4181 | @pytest.mark.parametrize("index", [True, False]) |
nothing calls this directly
no test coverage detected