Premium problem75. Interquartile Range

Easy Locked

Return the interquartile range of s: the 75th percentile minus the 25th percentile (using linear interpolation between data points for the percentiles).

Input

0     1
1     2
2     4
3     7
4     9
5    12
6    15
7    20
8    25
9    33
dtype: int64

Output

14.0

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)