The code in the solution seems to have an error, maybe I didn’t execute a previous piece?
It is defined in the first answer of the quiz:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_context("talk")
# Define the style of the box style
boxplot_property = {
"vert": True,
"whis": 100,
"patch_artist": True,
"widths": 0.5,
"rot": 90,
"boxprops": dict(linewidth=3, color="black", alpha=0.9),
"medianprops": dict(linewidth=2.5, color="black", alpha=0.9),
"whiskerprops": dict(linewidth=3, color="black", alpha=0.9),
"capprops": dict(linewidth=3, color="black", alpha=0.9),
}
_, ax = plt.subplots(figsize=(15, 10))
_ = coefs.plot.box(**boxplot_property, ax=ax)
1 Like
Cheers, should have looked there