Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/19459#discussion_r143633890
--- Diff: python/pyspark/sql/session.py ---
@@ -510,9 +511,43 @@ 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)]
+ if self.conf.get("spark.sql.execution.arrow.enable",
"false").lower() == "true" \
--- End diff --
The config name was modified to `spark.sql.execution.arrow.enabled` at
d29d1e87995e02cb57ba3026c945c3cd66bb06e2 and
af8a34c787dc3d68f5148a7d9975b52650bb7729.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]