Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40270

Make compute.max_rows as None working in DataFrame.style

    XMLWordPrintableJSON

Details

    Description

      import pyspark.pandas as ps
      ps.set_option("compute.max_rows", None)
      ps.get_option("compute.max_rows")
      ps.range(1).style
      

      fails as below:

      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/.../spark/python/pyspark/pandas/frame.py", line 3656, in style
          pdf = self.head(max_results + 1)._to_internal_pandas()
      TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
      

      Attachments

        Activity

          People

            gurwls223 Hyukjin Kwon
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: