Skip to content

Commit 021aadd

Browse files
mosc9575attack68
andauthored
Update pandas/tests/plotting/frame/test_frame_color.py
Co-authored-by: JHM Darbyshire <[email protected]>
1 parent 1caf4dc commit 021aadd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/plotting/frame/test_frame_color.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,7 @@ def test_bar_user_colors(self):
166166
(0.0, 0.0, 1.0, 1.0),
167167
(1.0, 0.0, 0.0, 1.0),
168168
]
169-
170-
ax = df.plot.bar(y="A", color=df["color"])
171-
result = [p.get_facecolor() for p in ax.patches]
172-
assert result == expected
173-
174-
ax = df.plot.bar(y="A", c=df["color"])
169+
ax = df.plot.bar(y="A", **{kw: df["color"]})
175170
result = [p.get_facecolor() for p in ax.patches]
176171
assert result == expected
177172

0 commit comments

Comments
 (0)