You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takuya Ueshin (Jira)" <ji...@apache.org> on 2023/03/30 21:17:00 UTC

[jira] [Created] (SPARK-42983) Fix the error message of createDataFrame from np.array(0)

Takuya Ueshin created SPARK-42983:
-------------------------------------

             Summary: 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


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