parameters: (self, n)
return_statement: return result[sizes > n]
docstring: Return the nth row from each group.
docstring_summary: Return the nth row from each group.
docstring_tokens: Return the nth row from each group .
function: def nth(self, n):
          """
          Return the nth row from each group.
          """
          result = self.agg(lambda x: x.nth(n)).sort_index()
          sizes = self.size().sort_index()
  
          return result[sizes > n]
function_tokens: def nth ( self , n ) : result = self . agg ( lambda x : x . nth ( n ) ) . sort_index ( ) sizes = self . size ( ) . sort_index ( ) return result [ sizes > n ]