Skip to content

Commit 352c1a4

Browse files
committed
Moved whatsnew documentation from v2.3.0 to v3.0.0 as requested, added issue tracking number to test as requested
1 parent 9c928ee commit 352c1a4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

doc/source/whatsnew/v2.3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Period
143143

144144
Plotting
145145
^^^^^^^^
146-
- Bug in :meth:`DataFrame.plot.bar` with ``stacked=True`` where labels on stacked bars with zero-height segments were incorrectly positioned at the base instead of the label position of the previous segment (:issue:`59429`)
146+
-
147147
-
148148

149149
Groupby/resample/rolling

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ Period
710710
Plotting
711711
^^^^^^^^
712712
- Bug in :meth:`.DataFrameGroupBy.boxplot` failed when there were multiple groupings (:issue:`14701`)
713+
- Bug in :meth:`DataFrame.plot.bar` with ``stacked=True`` where labels on stacked bars with zero-height segments were incorrectly positioned at the base instead of the label position of the previous segment (:issue:`59429`)
713714
- Bug in :meth:`DataFrame.plot.line` raising ``ValueError`` when set both color and a ``dict`` style (:issue:`59461`)
714715
- Bug in :meth:`DataFrame.plot` that causes a shift to the right when the frequency multiplier is greater than one. (:issue:`57587`)
715716
- Bug in :meth:`Series.plot` with ``kind="pie"`` with :class:`ArrowDtype` (:issue:`59192`)

pandas/tests/plotting/frame/test_frame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ def test_bar_nan_stacked(self):
775775
assert result == expected
776776

777777
def test_bar_stacked_label_position_with_zero_height(self):
778+
# GH 59429
778779
df = DataFrame({"A": [3, 0, 1], "B": [0, 2, 4], "C": [5, 0, 2]})
779780
ax = df.plot.bar(stacked=True)
780781
ax.bar_label(ax.containers[-1])

0 commit comments

Comments
 (0)