<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sd(series):
 """ Returns the standard deviation of values in a series. Args: series (pandas.Series):
 column to summarize. """


    if np.issubdtype(series.dtype, np.number):
        return series.std()
    else:
        return np.nan