Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21370#discussion_r190251443
  
    --- Diff: python/pyspark/sql/dataframe.py ---
    @@ -347,13 +347,30 @@ def show(self, n=20, truncate=True, vertical=False):
              name | Bob
             """
             if isinstance(truncate, bool) and truncate:
    -            print(self._jdf.showString(n, 20, vertical))
    +            print(self._jdf.showString(n, 20, vertical, False))
             else:
    -            print(self._jdf.showString(n, int(truncate), vertical))
    +            print(self._jdf.showString(n, int(truncate), vertical, False))
     
         def __repr__(self):
             return "DataFrame[%s]" % (", ".join("%s: %s" % c for c in 
self.dtypes))
     
    +    def _repr_html_(self):
    +        """Returns a dataframe with html code when you enabled eager 
evaluation
    +        by 'spark.sql.repl.eagerEval.enabled', this only called by repr 
you're
    --- End diff --
    
    repr -> repl?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to