<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_row_data(self, row, name=None):
 """ Returns a dict with all available data for a row in the extension Parameters row : tuple, list, string A valid index for the extension DataFrames name : string, optional If given, adds a key 'name' with the given value to the dict. In that case the dict can be used directly to build a new extension. Returns ------- dict object with the data (pandas DataFrame)for the specific rows """

        retdict = {}
        for rowname, data in zip(self.get_DataFrame(),
                                 self.get_DataFrame(data=True)):
            retdict[rowname] = pd.DataFrame(data.ix[row])
        if name:
            retdict['name'] = name
        return retdict