[ 
https://issues.apache.org/jira/browse/SPARK-42983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708645#comment-17708645
 ] 

Snoot.io commented on SPARK-42983:
----------------------------------

User 'ueshin' has created a pull request for this issue:
https://github.com/apache/spark/pull/40669

> Fix the error message of createDataFrame from np.array(0)
> ---------------------------------------------------------
>
>                 Key: SPARK-42983
>                 URL: https://issues.apache.org/jira/browse/SPARK-42983
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect
>    Affects Versions: 3.4.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 3.4.0
>
>
> {code:python}
> >>> import numpy as np
> >>> spark.createDataFrame(np.array(0))
> Traceback (most recent call last):
> ...
> TypeError: len() of unsized object
> {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

Reply via email to