Skip to content

Commit 788013d

Browse files
authoredApr 18, 2024··
Merge pull request #4579 from ShivMunagala/patch-1
fix: Code block not rendering
2 parents 95cb360 + b786d9c commit 788013d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/python/bar-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ fig.show()
307307
### Stacked Bar Chart From Aggregating a DataFrame
308308

309309
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.
310-
```
311310

311+
```python
312312
from plotly import graph_objects as go
313313
import pandas as pd
314314

0 commit comments

Comments
 (0)
Please sign in to comment.