code: def nsmallest(self, n, columns, keep='first'):
          return algorithms.SelectNFrame(self,
                                         n=n,
                                         keep=keep,
                                         columns=columns).nsmallest()