<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def interpolate_data(self, data, limit, method):
 """ Interpolate dataframe. Parameters data : pd.DataFrame() Dataframe to interpolate limit : int Interpolation limit. method : str Interpolation method. Returns ------- pd.DataFrame() Dataframe containing interpolated data """

        data = data.interpolate(how="index", limit=limit, method=method)        
        return data