You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2022/08/30 05:35:00 UTC

[jira] [Updated] (SPARK-40270) Make compute.max_rows as None working in DataFrame.style

     [ https://issues.apache.org/jira/browse/SPARK-40270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-40270:
---------------------------------
    Priority: Minor  (was: Major)

> 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
>
> {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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org