Description
PySpark raises an exception when:
>>> spark.createDataFrame(pd.DataFrame({"a": [1]}), schema="int").collect() Traceback (most recent call last): ... TypeError: field value: IntegerType() can not accept object (1,) in type <class 'tuple'>
whereas Spark Connect doesn't.