What do whis, showfliers and notch change in a Matplotlib or Seaborn boxplot, and what does a notch show?

Quick Overview

Asks what the whis, showfliers and notch parameters do to a Matplotlib or Seaborn boxplot and what a notched box means. Tests whether you can explain whisker reach, how outliers are flagged and drawn, and how to read the notch around the median when comparing groups.

What do whis, showfliers and notch change in a Matplotlib or Seaborn boxplot, and what does a notch show?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

In Matplotlib and Seaborn, what do the `whis`, `showfliers` and `notch` parameters change about how a boxplot is drawn, and what does a notched box represent? ```hint Work one small sample Take ten numbers with one far-out value and find the data point each whisker ends on. For the notch, ask which statistic it describes and how its width should change with the sample size. ``` ### What a Strong Answer Covers - How `whis` sets the whisker reach, including the default and the data point where a whisker actually ends - What counts as a flier and what `showfliers` does with it - What the notch encodes, what its width depends on, and how to compare the notches of two boxes - The odd shapes a notch can produce on small samples and why they appear ### Follow-up Questions - How would you make the whiskers span the 5th to 95th percentiles, and what should the caption then say? - If two notches overlap, can you conclude that the medians are equal? - When would you hide fliers, and what would you draw instead? - How would you replace the default notch with a bootstrap interval for the median?

Overview: Asks what the whis, showfliers and notch parameters do to a Matplotlib or Seaborn boxplot and what a notched box means. Tests whether you can explain whisker reach, how outliers are flagged and drawn, and how to read the notch around the median when comparing groups.

General logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

In Matplotlib and Seaborn, what do the whis, showfliers and notch parameters change about how a boxplot is drawn, and what does a notched box represent?

What a Strong Answer Covers Guidance

  • How whis sets the whisker reach, including the default and the data point where a whisker actually ends
  • What counts as a flier and what showfliers does with it
  • What the notch encodes, what its width depends on, and how to compare the notches of two boxes
  • The odd shapes a notch can produce on small samples and why they appear

Follow-up Questions Guidance

  • How would you make the whiskers span the 5th to 95th percentiles, and what should the caption then say?
  • If two notches overlap, can you conclude that the medians are equal?
  • When would you hide fliers, and what would you draw instead?
  • How would you replace the default notch with a bootstrap interval for the median?