<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def impute_data(self,x):
 """Imputes data set containing Nan values"""

        imp = Imputer(missing_values='NaN', strategy='mean', axis=0)
        return imp.fit_transform(x)