Skip to content

Commit 0273814

Browse files
committed
Merge branch 'subplot_label_count_fix' of https://github.com/eicchen02/pandas into subplot_label_count_fix
2 parents 7e50fa0 + 2e8fc9a commit 0273814

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pandas/tests/plotting/test_misc.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -683,13 +683,6 @@ def test_bar_plt_xaxis_intervalrange(self):
683683
)
684684

685685

686-
def test_plot_bar_label_count_default():
687-
df = DataFrame(
688-
[(30, 10, 10, 10), (20, 20, 20, 20), (10, 30, 30, 10)], columns=list("ABCD")
689-
)
690-
df.plot(subplots=True, kind="bar", title=["A", "B", "C", "D"])
691-
692-
693686
@pytest.fixture
694687
def df_bar_data():
695688
return np.random.default_rng(3).integers(0, 100, 5)
@@ -823,6 +816,15 @@ def test_bar_2_subplots_1_triple_stacked(df_bar_data, df_bar_df, subplot_divisio
823816
_df_bar_subplot_checker(
824817
df_bar_data, df_bar_df, subplot_data_df_list[i], subplot_division[i]
825818
)
819+
820+
821+
def test_plot_bar_label_count_default():
822+
df = DataFrame(
823+
[(30, 10, 10, 10), (20, 20, 20, 20), (10, 30, 30, 10)], columns=list("ABCD")
824+
)
825+
df.plot(subplots=True, kind="bar", title=["A", "B", "C", "D"])
826+
827+
826828
def test_plot_bar_label_count_expected_fail():
827829
df = DataFrame(
828830
[(30, 10, 10, 10), (20, 20, 20, 20), (10, 30, 30, 10)], columns=list("ABCD")

0 commit comments

Comments
 (0)