<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_outlier(self, data, sd_val):
 """ Remove outliers from dataframe. Note ---- 1. This function excludes all lines with NA in all columns. Parameters data : pd.DataFrame() Dataframe to remove outliers from. sd_val : int Standard Deviation Value (specifices how many SDs away is a point considered an outlier) Returns ------- pd.DataFrame() Dataframe with outliers removed. """

        data = data.dropna()
        data = data[(np.abs(stats.zscore(data)) < float(sd_val)).all(axis=1)]
        return data