Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19646#discussion_r148791016
  
    --- Diff: python/pyspark/sql/session.py ---
    @@ -512,9 +557,7 @@ def createDataFrame(self, data, schema=None, 
samplingRatio=None, verifySchema=Tr
             except Exception:
                 has_pandas = False
             if has_pandas and isinstance(data, pandas.DataFrame):
    -            if schema is None:
    -                schema = [str(x) for x in data.columns]
    -            data = [r.tolist() for r in data.to_records(index=False)]
    --- End diff --
    
    according to the ticket, seems we need to convert numpy.datetime64 to 
python datetime manually.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to