[
https://issues.apache.org/jira/browse/SPARK-40270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645257#comment-17645257
]
Apache Spark commented on SPARK-40270:
--------------------------------------
User 'Yikun' has created a pull request for this issue:
https://github.com/apache/spark/pull/39006
> 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
> Assignee: Hyukjin Kwon
> Priority: Minor
> Fix For: 3.3.1, 3.2.3, 3.4.0
>
>
> {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: [email protected]
For additional commands, e-mail: [email protected]