Skip to content

Commit 896457d

Browse files
committed
TST: Include histogram in xlabel/ylabel test.
1 parent 8527b1e commit 896457d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/plotting/test_series.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def test_style_single_ok(self):
807807
"index_name, old_label, new_label",
808808
[(None, "", "new"), ("old", "old", "new"), (None, "", "")],
809809
)
810-
@pytest.mark.parametrize("kind", ["line", "area", "bar", "barh"])
810+
@pytest.mark.parametrize("kind", ["line", "area", "bar", "barh", "hist"])
811811
def test_xlabel_ylabel_series(self, kind, index_name, old_label, new_label):
812812
# GH 9093
813813
ser = Series([1, 2, 3, 4])
@@ -818,6 +818,9 @@ def test_xlabel_ylabel_series(self, kind, index_name, old_label, new_label):
818818
if kind == "barh":
819819
assert ax.get_xlabel() == ""
820820
assert ax.get_ylabel() == old_label
821+
elif kind == "hist":
822+
assert ax.get_xlabel() == ""
823+
assert ax.get_ylabel() == "Frequency"
821824
else:
822825
assert ax.get_ylabel() == ""
823826
assert ax.get_xlabel() == old_label

0 commit comments

Comments
 (0)