<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def within_n_sds(n, series):
 """Return true if all values in sequence are within n SDs"""

    z_score = (series - series.mean()) / series.std()
    return (z_score.abs() <= n).all()