Skip to content
Snippets Groups Projects
  • Davies Liu's avatar
    5b0a42cb
    [SPARK-5898] [SPARK-5896] [SQL] [PySpark] create DataFrame from pandas and tuple/list · 5b0a42cb
    Davies Liu authored
    Fix createDataFrame() from pandas DataFrame (not tested by jenkins, depends on SPARK-5693).
    
    It also support to create DataFrame from plain tuple/list without column names, `_1`, `_2` will be used as column names.
    
    Author: Davies Liu <davies@databricks.com>
    
    Closes #4679 from davies/pandas and squashes the following commits:
    
    c0cbe0b [Davies Liu] fix tests
    8466d1d [Davies Liu] fix create DataFrame from pandas
    5b0a42cb
    History
    [SPARK-5898] [SPARK-5896] [SQL] [PySpark] create DataFrame from pandas and tuple/list
    Davies Liu authored
    Fix createDataFrame() from pandas DataFrame (not tested by jenkins, depends on SPARK-5693).
    
    It also support to create DataFrame from plain tuple/list without column names, `_1`, `_2` will be used as column names.
    
    Author: Davies Liu <davies@databricks.com>
    
    Closes #4679 from davies/pandas and squashes the following commits:
    
    c0cbe0b [Davies Liu] fix tests
    8466d1d [Davies Liu] fix create DataFrame from pandas
tests.py 17.26 KiB