code: def intersect(self, other):
          
          return DataFrame(self._jdf.intersect(other._jdf), self.sql_ctx)
docs: Return a new :class:`DataFrame` containing rows only in
          both this frame and another frame.
  
          This is equivalent to `INTERSECT` in SQL.