Box plot#

A box plot shows the distribution of a numeric variable grouped by categories.

gufo.chart(df).boxplot("department", "salary").show()

Horizontal#

gufo.chart(df).boxplot("department", "salary", horizontal=True).show()

Color#

# Single color for all boxes
gufo.chart(df).boxplot("department", "salary", color="steelblue").show()

Wide-form#

Pass a list of column names to show one box per column — no reshaping needed.

gufo.chart(df).boxplot("x", ["q1_scores", "q2_scores", "q3_scores"]).show()

API reference#

See gufo.core.chart.Chart.boxplot().