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