Description
from collections import namedtuple MyTuple = namedtuple("MyTuple", ["zz", "b", "a"]) class MyInheritedTuple(MyTuple): pass df = spark.createDataFrame([MyInheritedTuple(1, 2, 3), MyInheritedTuple(11, 22, 33)]) df.collect()
[Row(zz=None, b=None, a=None), Row(zz=None, b=None, a=None)]
should be
[Row(zz=1, b=2, a=3), Row(zz=11, b=22, a=33)]