I guess barmode should be specified for the subplots layout.
barmode
p = [p1, p2] p.plot.layout["barmode"] = "stack" p