[ https://issues.apache.org/jira/browse/SPARK-40270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17597546#comment-17597546 ]
Apache Spark commented on SPARK-40270: -------------------------------------- User 'HyukjinKwon' has created a pull request for this issue: https://github.com/apache/spark/pull/37718 > Make compute.max_rows as None working in DataFrame.style > -------------------------------------------------------- > > Key: SPARK-40270 > URL: https://issues.apache.org/jira/browse/SPARK-40270 > Project: Spark > Issue Type: Bug > Components: Pandas API on Spark > Affects Versions: 3.4.0 > Reporter: Hyukjin Kwon > Priority: Minor > Fix For: 3.1.4, 3.4.0, 3.3.1, 3.2.3 > > > {code} > import pyspark.pandas as ps > ps.set_option("compute.max_rows", None) > ps.get_option("compute.max_rows") > ps.range(1).style > {code} > fails as below: > {code} > 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' > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org