How to plot histogram subplots of a DataFrame?

Hey! Would using the legend as the column label work instead? That way we could just do something like this:

using DataFrames, StatsPlots

df = DataFrame(randn(100, 3), [:Tenure, :Balance, :CreditScore])

N = ncol(df)

@df df histogram(cols(1:N); layout=N)

index

2 Likes