<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getstr_data(self, name, vals):
 """Return stats data string in markdown style."""

        fld2val = self.get_fld2val(name, vals)
        return self.fmt.format(**fld2val)