StructType can not accept object %r in type %s" % (obj, type(obj)))
在将string类型的数据类型转换为sparkrdd时,一直报这个错,StructTypecannotacceptobject%rintype%s”%(obj,type(obj)))...s=str(tree)y=str(YESTERDAY)list0=[s,y]outRes=self.sc.parallelize(list0)df_tree=outRes.toDF("model:string,d