Spark, Data Engineering, Data Science, Data, Software Engineering.
StructField objects - one for the street address and one for the city. from pyspark.sql.types import StructType, StructField, StringType, IntegerType, ArrayType # Define the schema address_schema = StructType([ StructField("street", StringType(), True), StructField("city", StringType(), True) ])