Skip to content

Commit

Permalink
Merge pull request #4579 from ShivMunagala/patch-1
Browse files Browse the repository at this point in the history
fix: Code block not rendering
  • Loading branch information
LiamConnors authored Apr 18, 2024
2 parents 95cb360 + b786d9c commit 788013d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/python/bar-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ fig.show()
### Stacked Bar Chart From Aggregating a DataFrame

Stacked bar charts are a powerful way to present results summarizing categories generated using the Pandas aggregate commands. `pandas.DataFrame.agg` produces a wide data set format incompatible with `px.bar`. Transposing and updating the indexes to achieve `px.bar` compatibility is a somewhat involved option. Here is one straightforward alternative, which presents the aggregated data as a stacked bar using plotly.graph_objects.
```

```python
from plotly import graph_objects as go
import pandas as pd

Expand Down

0 comments on commit 788013d

Please sign in to comment.