<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def limit(self, num):
 """Limits the result count to the number specified. [Row(age=2, name=u'Alice')] [] """

        jdf = self._jdf.limit(num)
        return DataFrame(jdf, self.sql_ctx)