Using Windows 10. Pyspark==3.0.1.
My code:
spark = SparkSession.builder.appName("app").getOrCreate() s = StructType().add("