Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/17926
  
    No, it is not virtually the same before/after (and also we need a 
regression test). So, it needs a JIRA - see 
http://spark.apache.org/contributing.html. Adding an parameter to 
`createDataFrame` is to add a functionality to `createDataFrame` that does not 
exist before in this API. 
    
    As you said, this can be done in a single line like that, you could just 
make a wrapper function for it in application side in few lines.
    
    ```python
    def createDataFrame(data, numSlices, **kwargs):
        return spark.createDataFrame(
            spark.sparkContext.parallelize(data, numSlices=numSlices), **kwargs)
    ```
    
    I am not sure if it is worth adding this parameter. It looks there is a 
potential confusion to users and workaround looks so easy. 



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to