beliefer opened a new pull request, #39378:
URL: https://github.com/apache/spark/pull/39378
### What changes were proposed in this pull request?
Currently, the python doc test failed caused by `DataFrame.describe`
```
File
"/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/dataframe.py",
line 898, in pyspark.sql.connect.dataframe.DataFrame.describe
Failed example:
df.describe(['age']).show()
Exception raised:
Traceback (most recent call last):
File
"/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/doctest.py",
line 1350, in __run
exec(compile(example.source, filename, "single",
File "<doctest pyspark.sql.connect.dataframe.DataFrame.describe[1]>",
line 1, in <module>
df.describe(['age']).show()
File
"/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/dataframe.py",
line 832, in describe
raise TypeError(f"'cols' must be list[str], but got
{type(s).__name__}")
TypeError: 'cols' must be list[str], but got list
```
### Why are the changes needed?
Let the python doc test success.
### Does this PR introduce _any_ user-facing change?
'No'.
New feature.
### How was this patch tested?
N/A
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]