Skip to content

Commit 5e89427

Browse files
archmojLiamConnors
andauthored
Update doc/python/bar-charts.md
Co-authored-by: Liam Connors <connorsl@tcd.ie>
1 parent 32a2c0c commit 5e89427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/python/bar-charts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ fig.update_layout(barmode='stack')
304304
fig.show()
305305
```
306306

307-
### Stacked Bar Chart from aggregating a data frame
307+
### 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. DF.agg() which produces a wide format data set with one row for each bar component and a column for each bar, which is the transpose of the orientation of the px.bar wide data frame. Tranposing and updating the indexes is a somewhat involved option. Here is one straightforward way to aggregate a data set into a summarized form and present the results as a stacked bar.
310310

0 commit comments

Comments
 (0)