Files
spectralforensics/examples/box_plot.py
T
2026-10-26 16:07:39 +00:00

9 lines
310 B
Python

from spectralforensics import box_plot
if __name__ == "__main__":
dataset = {"income": ["<=50K", "<=50K", "<=50K", ">50K", ">50K", ">50K"],
"hours-per-week": [30, 40, 45, 40, 50, 60]}
box_plot(dataset, x="income", y="hours-per-week",
fill=False, gap=.1, palette="pastel")