Skip to content

Commit b786d9c

Browse files
authored
fix: Code block not rendering
Code block under the subtitle 'Stacked Bar Chart From Aggregating a DataFrame' wasn't rendering because language declaration for the block was missing.
1 parent 95cb360 commit b786d9c

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)