exp show: Drop --pcp. (#9270)

Closes #9268
This commit is contained in:
David de la Iglesia Castro
2023-05-19 15:36:33 +05:45
committed by GitHub
parent cdba65f27e
commit 02f7fcae73
4 changed files with 11 additions and 182 deletions
-18
View File
@@ -374,21 +374,3 @@ def test_drop_duplicates_invalid_axis():
with pytest.raises(ValueError, match="Invalid 'axis' value foo."):
td.drop_duplicates("foo")
def test_to_parallel_coordinates(tmp_dir, mocker):
(tmp_dir / "foo").mkdir()
td = TabularData(["categorical", "scalar"])
td.extend([["foo", "0.1"], ["bar", "2"]])
write = mocker.patch("dvc_render.html.render_html")
renderer_class = mocker.patch("dvc_render.plotly.ParallelCoordinatesRenderer")
renderer = renderer_class.return_value
td.to_parallel_coordinates(output_path="foo")
renderer_class.assert_called_with(
td.as_dict(), color_by=None, fill_value=td._fill_value
)
write.assert_called_with(renderers=[renderer], output_file="foo")